tempered-0.2.0: A dead-simple shell interpolation templating utility

Safe HaskellNone
LanguageHaskell2010

Tempered.Parser

Synopsis

Documentation

templateFromFile :: FilePath -> IO (Either ParseError (Template Command)) Source #

Parse a template from a file.

parseTemplate :: FilePath -> String -> Either ParseError (Template Command) Source #

Parse a template from a string with a given filename for errors.

handleTemplateError :: Either ParseError (Template a) -> IO (Template a) Source #

Fail if parsing errors occurred, otherwise return the template.