haskell-src-1.0.1.1: Manipulating Haskell source codeSource codeContentsIndex
Language.Haskell.Parser
Portabilityportable
Stabilityexperimental
Maintainerlibraries@haskell.org
Description
Haskell parser.
Synopsis
parseModule :: String -> ParseResult HsModule
parseModuleWithMode :: ParseMode -> String -> ParseResult HsModule
data ParseMode = ParseMode {
parseFilename :: String
}
defaultParseMode :: ParseMode
data ParseResult a
= ParseOk a
| ParseFailed SrcLoc String
Documentation
parseModule :: String -> ParseResult HsModuleSource
Parse of a string, which should contain a complete Haskell 98 module.
parseModuleWithMode :: ParseMode -> String -> ParseResult HsModuleSource
Parse of a string, which should contain a complete Haskell 98 module.
data ParseMode Source
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 :: ParseModeSource
Default parameters for a parse, currently just a marker for an unknown filename.
data ParseResult aSource
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 0.8