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

Safe HaskellSafe-Infered

Language.Haskell.Her.Parsley

Documentation

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

newtype P t x Source

Constructors

P 

Fields

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

Instances

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

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

pRest :: P t [t]Source

next :: P t tSource

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 bSource

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

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

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