Cabal-syntax-3.9.0.0: A library for working with .cabal files
LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Fields.Lexer

Description

Lexer for the cabal files.

Synopsis

Documentation

ltest :: Int -> String -> IO () Source #

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 

Instances

Instances details
Show Token Source # 
Instance details

Defined in Distribution.Fields.Lexer

data LToken Source #

Constructors

L !Position !Token 

Instances

Instances details
Show LToken Source # 
Instance details

Defined in Distribution.Fields.Lexer