Safe Haskell | Safe-Inferred |
---|
Text.HPaco.Readers.Paco.ParserInternals
- 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
Constructors
PacoState | |
Fields
|
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.
Instances
fillExtension :: FilePath -> String -> FilePathSource