Safe Haskell | None |
---|---|
Language | Haskell2010 |
- templateFromFile :: FilePath -> IO (Either ParseError (Template Command))
- parseTemplate :: FilePath -> String -> Either ParseError (Template Command)
- handleTemplateError :: Either ParseError (Template a) -> IO (Template a)
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.