|
Language.Haskell.ParseMonad | Portability | portable | Stability | experimental | Maintainer | libraries@haskell.org |
|
|
|
|
|
Description |
Monads for the Haskell parser and lexer.
|
|
Synopsis |
|
|
|
|
Parsing
|
|
|
Monad for parsing
| Instances | |
|
|
|
The result of a parse.
| Constructors | ParseOk a | The parse succeeded, yielding a value.
| ParseFailed SrcLoc String | The parse failed at the specified
source location, with an error message.
|
| Instances | |
|
|
|
|
|
Constructors | | Instances | |
|
|
|
Static parameters governing a parse.
More to come later, e.g. literate mode, language extensions.
| Constructors | ParseMode | | parseFilename :: String | original name of the file being parsed
|
|
|
|
|
|
Default parameters for a parse,
currently just a marker for an unknown filename.
|
|
|
|
|
|
|
|
|
|
|
|
Lexing
|
|
|
Instances | |
|
|
|
|
|
Discard some input characters (these must not include tabs or newlines).
|
|
|
Discard the next character, which must be a newline.
|
|
|
Discard the next character, which must be a tab.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |