Cabal-3.2.1.0: A framework for packaging Haskell software
License BSD3
Maintainer cabal-devel@haskell.org
Portability portable
Safe Haskell None
Language Haskell2010

Distribution.Fields.Lexer

Description

Lexer for the cabal files.

Synopsis

Documentation

data Token Source #

Tokens of outer cabal file structure. Field values are treated opaquely.

Constructors

TokSym ! ByteString

Haskell-like identifier, number or operator

TokStr ! ByteString

String in quotes

TokOther ! ByteString

Operators and parens

Indent ! Int

Indentation token

TokFieldLine ! ByteString

Lines after :

Colon
OpenBrace
CloseBrace
EOF
LexicalError InputStream