ghc-7.4.1: The GHC API

Safe HaskellSafe-Infered

Lexer

Documentation

data Token Source

Constructors

ITas 
ITcase 
ITclass 
ITdata 
ITdefault 
ITderiving 
ITdo 
ITelse 
IThiding 
ITif 
ITimport 
ITin 
ITinfix 
ITinfixl 
ITinfixr 
ITinstance 
ITlet 
ITmodule 
ITnewtype 
ITof 
ITqualified 
ITthen 
ITtype 
ITwhere 
ITscc 
ITforall 
ITforeign 
ITexport 
ITlabel 
ITdynamic 
ITsafe 
ITinterruptible 
ITunsafe 
ITstdcallconv 
ITccallconv 
ITcapiconv 
ITprimcallconv 
ITmdo 
ITfamily 
ITgroup 
ITby 
ITusing 
ITinline_prag InlineSpec RuleMatchInfo 
ITspec_prag 
ITspec_inline_prag Bool 
ITsource_prag 
ITrules_prag 
ITwarning_prag 
ITdeprecated_prag 
ITline_prag 
ITscc_prag 
ITgenerated_prag 
ITcore_prag 
ITunpack_prag 
ITnounpack_prag 
ITann_prag 
ITclose_prag 
IToptions_prag String 
ITinclude_prag String 
ITlanguage_prag 
ITvect_prag 
ITvect_scalar_prag 
ITnovect_prag 
ITdotdot 
ITcolon 
ITdcolon 
ITequal 
ITlam 
ITvbar 
ITlarrow 
ITrarrow 
ITat 
ITtilde 
ITtildehsh 
ITdarrow 
ITminus 
ITbang 
ITstar 
ITdot 
ITbiglam 
ITocurly 
ITccurly 
ITocurlybar 
ITccurlybar 
ITvocurly

}, for type applications

ITvccurly 
ITobrack 
ITopabrack 
ITcpabrack 
ITcbrack 
IToparen 
ITcparen 
IToubxparen 
ITcubxparen 
ITsemi 
ITcomma 
ITunderscore 
ITbackquote 
ITsimpleQuote 
ITvarid FastString 
ITconid FastString 
ITvarsym FastString 
ITconsym FastString 
ITqvarid (FastString, FastString) 
ITqconid (FastString, FastString) 
ITqvarsym (FastString, FastString) 
ITqconsym (FastString, FastString) 
ITprefixqvarsym (FastString, FastString) 
ITprefixqconsym (FastString, FastString) 
ITdupipvarid FastString 
ITchar Char 
ITstring FastString 
ITinteger Integer 
ITrational FractionalLit 
ITprimchar Char 
ITprimstring FastString 
ITprimint Integer 
ITprimword Integer 
ITprimfloat FractionalLit 
ITprimdouble FractionalLit 
ITopenExpQuote 
ITopenPatQuote 
ITopenDecQuote 
ITopenTypQuote 
ITcloseQuote 
ITidEscape FastString 
ITparenEscape 
ITtyQuote 
ITquasiQuote (FastString, FastString, RealSrcSpan) 
ITproc 
ITrec 
IToparenbar 
ITcparenbar 
ITlarrowtail 
ITrarrowtail 
ITLarrowtail 
ITRarrowtail 
ITunknown String 
ITeof 
ITdocCommentNext String 
ITdocCommentPrev String 
ITdocCommentNamed String 
ITdocSection Int String 
ITdocOptions String 
ITdocOptionsOld String 
ITlineComment String 
ITblockComment String 

Instances

lexer :: (Located Token -> P a) -> P aSource

newtype P a Source

Constructors

P 

Fields

unP :: PState -> ParseResult a
 

Instances