Portability | GHC |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Parser for the module language, as described in Language.Modulo.
- parse :: String -> Either ParseError Module
- parseName :: String -> Either ParseError Name
- unsafeParseFile :: FilePath -> IO Module
Documentation
parse :: String -> Either ParseError ModuleSource
Parse a module description, returning an error if unsuccessful.
parseName :: String -> Either ParseError NameSource
Parse a qualified name, returning an error if unsuccessful.
unsafeParseFile :: FilePath -> IO ModuleSource
Parse a module description from the given file, or fail if unsuccessful.
This unsafe function should not be used in production code.