yi-mode-haskell-0.19.1: Yi editor haskell mode
Safe HaskellNone
LanguageHaskell2010

Yi.Lexer.Haskell

Synopsis

Documentation

alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput)) Source #

Scan one token. Return (maybe) a token and a new state.

tokenToText :: Token -> Maybe String Source #

isSpecial :: String -> Token -> Bool Source #

isComment :: Token -> Bool Source #

data Token Source #

Instances

Instances details
Show Token Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

showsPrec :: Int -> Token -> ShowS

show :: Token -> String

showList :: [Token] -> ShowS

Eq Token Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

(==) :: Token -> Token -> Bool

(/=) :: Token -> Token -> Bool

type HlState = Int Source #

data CommentType Source #

Constructors

Open 
Close 
Text 
Line 

Instances

Instances details
Show CommentType Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

showsPrec :: Int -> CommentType -> ShowS

show :: CommentType -> String

showList :: [CommentType] -> ShowS

Eq CommentType Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

(==) :: CommentType -> CommentType -> Bool

(/=) :: CommentType -> CommentType -> Bool

data ReservedType Source #

Instances

Instances details
Show ReservedType Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

showsPrec :: Int -> ReservedType -> ShowS

show :: ReservedType -> String

showList :: [ReservedType] -> ShowS

Eq ReservedType Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

(==) :: ReservedType -> ReservedType -> Bool

(/=) :: ReservedType -> ReservedType -> Bool

data OpType Source #

Instances

Instances details
Show OpType Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

showsPrec :: Int -> OpType -> ShowS

show :: OpType -> String

showList :: [OpType] -> ShowS

Eq OpType Source # 
Instance details

Defined in Yi.Lexer.Haskell

Methods

(==) :: OpType -> OpType -> Bool

(/=) :: OpType -> OpType -> Bool