Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some utilities for common uses of Template Haskell.
- readFileAsStrLiteral :: FilePath -> Q Exp
- readFileAsMarkdown :: FilePath -> Q Exp
Documentation
Read a file from disk at compile time and provide it as a string literal.
Read a Markdown file from disk at compile time and render it as HTML. The resulting `Q Exp` is a string literal containing the HTML output.