Safe Haskell | Safe-Inferred |
---|
- data PacoState = PacoState {
- psBasePath :: FilePath
- psDefs :: [(String, Statement)]
- psDeps :: [String]
- psIncludeExtension :: Maybe String
- psHandleInclude :: Reader
- defaultPacoState :: PacoState
- data ParseError
- type Parser a = ParsecT String PacoState IO a
- addDef :: String -> Statement -> Parser ()
- resolveDef :: String -> Parser Statement
- fillExtension :: FilePath -> String -> FilePath
Documentation
PacoState | |
|
data ParseError
The abstract data type ParseError
represents parse errors. It
provides the source position (SourcePos
) of the error
and a list of error messages (Message
). A ParseError
can be returned by the function parse
. ParseError
is an
instance of the Show
class.
Show ParseError | |
Typeable ParseError | |
Exception ParseError |
resolveDef :: String -> Parser StatementSource
fillExtension :: FilePath -> String -> FilePathSource