haskell-src-exts-0.4.8: Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printerContentsIndex
Language.Haskell.Exts.Parser
Portabilityportable
Stabilityexperimental
MaintainerNiklas Broberg, d00nibro@dtek.chalmers.se
Description
Synopsis
parseModule :: String -> ParseResult Module
parseModuleWithMode :: ParseMode -> String -> ParseResult Module
data ParseMode = ParseMode {
parseFilename :: String
}
defaultParseMode :: ParseMode
data ParseResult a
= ParseOk a
| ParseFailed SrcLoc String
Documentation
parseModule :: String -> ParseResult Module
Parse of a string, which should contain a complete Haskell 98 module.
parseModuleWithMode :: ParseMode -> String -> ParseResult Module
Parse of a string, which should contain a complete Haskell 98 module.
data ParseMode
Static parameters governing a parse. More to come later, e.g. literate mode, language extensions.
Constructors
ParseMode
parseFilename :: Stringoriginal name of the file being parsed
defaultParseMode :: ParseMode
Default parameters for a parse, currently just a marker for an unknown filename.
data ParseResult a
The result of a parse.
Constructors
ParseOk aThe parse succeeded, yielding a value.
ParseFailed SrcLoc StringThe parse failed at the specified source location, with an error message.
show/hide Instances
Produced by Haddock version 2.4.2