| 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 #
data CommentType Source #
Instances
| Show CommentType Source # | |
Defined in Yi.Lexer.Haskell Methods showsPrec :: Int -> CommentType -> ShowS # show :: CommentType -> String # showList :: [CommentType] -> ShowS # | |
| Eq CommentType Source # | |
Defined in Yi.Lexer.Haskell | |
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 Methods showsPrec :: Int -> ReservedType -> ShowS # show :: ReservedType -> String # showList :: [ReservedType] -> ShowS # | |
| Eq ReservedType Source # | |
Defined in Yi.Lexer.Haskell | |