ghc-7.6.2: The GHC API

Safe HaskellSafe-Inferred

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