| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Yi.Lexer.Haskell
Synopsis
- initState :: HlState
- alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput))
- tokenToStyle :: Token -> StyleName
- tokenToText :: Token -> Maybe String
- type TT = Tok Token
- isErrorTok :: Token -> Bool
- isSpecial :: String -> Token -> Bool
- startsLayout :: Token -> Bool
- isComment :: Token -> Bool
- data Token
- type HlState = Int
- data CommentType
- data ReservedType
- data OpType
Documentation
alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput)) Source #
Scan one token. Return (maybe) a token and a new state.
tokenToStyle :: Token -> StyleName Source #
isErrorTok :: Token -> Bool Source #
startsLayout :: Token -> Bool Source #
Constructors
| Number | |
| CharTok | |
| StringTok | |
| VarIdent | |
| ConsIdent | |
| Reserved !ReservedType | |
| ReservedOp !OpType | |
| Special Char | |
| ConsOperator String | |
| Operator String | |
| Comment !CommentType | |
| THQuote | |
| CppDirective | |
| Unrecognized |
Instances
data CommentType Source #
Instances
| Show CommentType Source # | |
Defined in Yi.Lexer.Haskell | |
| Eq CommentType Source # | |
Defined in Yi.Lexer.Haskell Methods (==) :: CommentType -> CommentType -> Bool Source # (/=) :: CommentType -> CommentType -> Bool Source # | |
data ReservedType Source #
Constructors
| Hiding | |
| Qualified | |
| As | |
| Import | |
| Data | |
| NewType | |
| Type | |
| Where | |
| Let | |
| In | |
| Do | |
| Of | |
| OtherLayout | |
| Deriving | |
| Module | |
| Forall | |
| Other | |
| Class | |
| Instance |
Instances
| Show ReservedType Source # | |
Defined in Yi.Lexer.Haskell | |
| Eq ReservedType Source # | |
Defined in Yi.Lexer.Haskell Methods (==) :: ReservedType -> ReservedType -> Bool Source # (/=) :: ReservedType -> ReservedType -> Bool Source # | |