here-1.2.3: Here docs & interpolated strings via quasiquotation

Safe HaskellNone



Interpolated here docs



i :: QuasiQuoterSource

Quote a here doc with embedded antiquoted expressions

Any expression occurring between ${ and } (for which the type must have Show and Typeable instances) will be interpolated into the quoted string.

Characters preceded by a backslash are treated literally. This enables the inclusion of the literal substring ${ within your quoted text by writing it as \${. The literal sequence \${ may be written as \\${.

iTrim :: QuasiQuoterSource

Like i, but with leading and trailing whitespace trimmed

template :: QuasiQuoterSource

Quote the contents of a file as with i

This enables usage as a simple template engine