Copyright | (c) Sterling Clover 2009 |
---|---|
License | BSD 3 Clause |
Maintainer | s.clover@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
This module provides stmp, a quasi-quoter for StringTemplate expressions.
Quoted templates are guaranteed syntactically well-formed at compile time,
and antiquotation (of identifiers only) is provided by backticks.
Usage: let var = [0,1,2] in toString [$stmp|($`var`; separator = ', '$)|] === "(0, 1, 2)"