ghc-7.8.4: The GHC API

Safe HaskellSafe-Inferred
LanguageHaskell98

ParserCoreUtils

Documentation

data ParseResult a

Constructors

OkP a 
FailP String 

type P a = String -> Int -> ParseResult a

thenP :: P a -> (a -> P b) -> P b

returnP :: a -> P a

failP :: String -> P a