her-lexer-0.1: A lexer for Haskell source code.

Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Haskell.Her.Parsley

Documentation

(<*^) :: Applicative f => f (a -> b) -> a -> f b Source

newtype P t x Source

Constructors

P 

Fields

runP :: [t] -> Maybe ([t], x, [t])
 

Instances

Alternative (P t) 
Monad (P t) 
Functor (P t) 
Applicative (P t) 

parse :: P t x -> [t] -> Maybe x Source

pRest :: P t [t] Source

pEnd :: P t () Source

next :: P t t Source

pExt :: P t x -> P t ([t], x) Source

pOpt :: P t x -> P t (Maybe x) Source

pSep :: P t s -> P t x -> P t [x] Source

grok :: (a -> Maybe b) -> P t a -> P t b Source

ok :: (a -> Bool) -> a -> Maybe a Source

tok :: (t -> Bool) -> P t t Source

teq :: Eq t => t -> P t () Source