tlex-th-0.2.0.1: TemplateHaskell plugin for Tlex
Safe HaskellNone
LanguageHaskell2010

Language.Lexer.Tlex.Output.TH

Synopsis

Documentation

class (Enum e, Monad m) => TlexContext p e (m :: Type -> Type) | m -> p, m -> e where #

Methods

tlexGetInputPart :: m (Maybe e) #

tlexGetMark :: m p #

data TlexResult p a #

Instances

Instances details
(Eq p, Eq a) => Eq (TlexResult p a) 
Instance details

Defined in Language.Lexer.Tlex.Runner

Methods

(==) :: TlexResult p a -> TlexResult p a -> Bool #

(/=) :: TlexResult p a -> TlexResult p a -> Bool #

(Show p, Show a) => Show (TlexResult p a) 
Instance details

Defined in Language.Lexer.Tlex.Runner

Methods

showsPrec :: Int -> TlexResult p a -> ShowS #

show :: TlexResult p a -> String #

showList :: [TlexResult p a] -> ShowS #

data Runner (e :: k) a #

Constructors

Runner 

Fields

Instances

Instances details
Functor (Runner e) 
Instance details

Defined in Language.Lexer.Tlex.Runner

Methods

fmap :: (a -> b) -> Runner e a -> Runner e b #

(<$) :: a -> Runner e b -> Runner e a #

runRunner :: (Enum s, TlexContext p c m) => Runner c a -> s -> m (TlexResult p a) #

tlexArray :: Int -> [a] -> TlexArray a Source #

addrCodeUnitsLE :: Bits a => Integral a => Int -> a -> [Word8] Source #

Should correspond tlexLookupTlexTransTable