yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
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
= Number
| CharTok
| StringTok
| VarIdent
| ConsIdent
| Reserved !ReservedType
| ReservedOp !OpType
| Special Char
| ConsOperator String
| Operator String
| Comment !CommentType
| THQuote
| CppDirective
| Unrecognized
type HlState = Int
data CommentType
= Open
| Close
| Text
| Line
data ReservedType
= Hiding
| Qualified
| As
| Import
| Data
| NewType
| Type
| Where
| Let
| In
| Do
| Of
| OtherLayout
| Deriving
| Module
| Forall
| Other
| Class
| Instance
data OpType
= Pipe
| Equal
| BackSlash
| LeftArrow
| RightArrow
| DoubleRightArrow
| DoubleColon
| DoubleDot
| Arobase
| Tilda
Documentation
initState :: HlStateSource
alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput))Source
Scan one token. Return (maybe) a token and a new state.
tokenToStyle :: Token -> StyleNameSource
tokenToText :: Token -> Maybe StringSource
type TT = Tok TokenSource
isErrorTok :: Token -> BoolSource
isSpecial :: String -> Token -> BoolSource
startsLayout :: Token -> BoolSource
isComment :: Token -> BoolSource
data Token Source
Constructors
Number
CharTok
StringTok
VarIdent
ConsIdent
Reserved !ReservedType
ReservedOp !OpType
Special Char
ConsOperator String
Operator String
Comment !CommentType
THQuote
CppDirective
Unrecognized
show/hide Instances
type HlState = IntSource
data CommentType Source
Constructors
Open
Close
Text
Line
show/hide Instances
data ReservedType Source
Constructors
Hiding
Qualified
As
Import
Data
NewType
Type
Where
Let
In
Do
Of
OtherLayout
Deriving
Module
Forall
Other
Class
Instance
show/hide Instances
data OpType Source
Constructors
Pipe
Equal
BackSlash
LeftArrow
RightArrow
DoubleRightArrow
DoubleColon
DoubleDot
Arobase
Tilda
show/hide Instances
Produced by Haddock version 2.6.1