canteven-template-0.1.0.0: A few utilites and helpers for using Template Haskell in your projects.

Safe HaskellNone
LanguageHaskell2010

Canteven.Template

Description

Some utilities for common uses of Template Haskell.

Synopsis

Documentation

readFileAsStrLiteral Source

Arguments

:: FilePath

The compile-time location of the file to read.

-> Q Exp 

Read a file from disk at compile time and provide it as a string literal.

readFileAsMarkdown Source

Arguments

:: FilePath

The compile-time location of the file to read.

-> Q Exp 

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.