ParserCoreUtils

ghc-7.8.2: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell98

ParserCoreUtils

# Documentation

data ParseResult a Source

Constructors

OkP a |
FailP String |

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

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

returnP :: a -> P a Source

failP :: String -> P a Source

getCoreModuleName :: FilePath -> IO String Source

data Token Source

Constructors

TKmodule |
TKdata |
TKnewtype |
TKforall |
TKrec |
TKlet |
TKin |
TKcase |
TKof |
TKcast |
TKnote |
TKexternal |
TKlocal |
TKwild |
TKoparen |
TKcparen |
TKobrace |
TKcbrace |
TKhash |
TKeq |
TKcolon |
TKcoloncolon |
TKcoloneqcolon |
TKstar |
TKrarrow |
TKlambda |
TKat |
TKdot |
TKquestion |
TKsemicolon |
TKname String |
TKcname String |
TKinteger Integer |
TKrational Rational |
TKstring String |
TKchar Char |
TKEOF |