License | BSD3 |
---|---|
Maintainer | [email protected] |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Lexer for the cabal files.
Synopsis
- ltest :: Int -> String -> IO ()
- lexToken :: Lex LToken
- data Token
- data LToken = L !Position !Token
- bol_section :: Int
- in_section :: Int
- in_field_layout :: Int
- in_field_braces :: Int
- mkLexState :: ByteString -> LexState
Documentation
Tokens of outer cabal file structure. Field values are treated opaquely.
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 |
bol_section :: Int Source #
in_section :: Int Source #
mkLexState :: ByteString -> LexState Source #