hpaco-lib-0.25.2.0: Modular template compiler library

Safe HaskellSafe-Inferred

Text.HPaco.Readers.Paco.ParserInternals

Synopsis

Documentation

data PacoState Source

Constructors

PacoState 

Fields

psBasePath :: FilePath
 
psDefs :: [(String, Statement)]
 
psDeps :: [String]
 
psIncludeExtension :: Maybe String
 
psHandleInclude :: Reader
 

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

Show ParseError 
Typeable ParseError 
Exception ParseError 

type Parser a = ParsecT String PacoState IO aSource

addDef :: String -> Statement -> Parser ()Source

fillExtension :: FilePath -> String -> FilePathSource