| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Morley.Util.Interpolate.Internal
Description
Internal module exporting utilities for making string interpolation quasiquoters
Synopsis
Documentation
data Transformation Source #
Datatype encoding transformations we apply to a quoter input and output. Note the order is important! We first unescape, then unindent, then trim.
Constructors
| Unescaping | |
| Unindenting | |
| Trimming | |
| Polymorphic |
Instances
type Transformations = Set Transformation Source #
A Set of Transformation
transformationsPowerSet :: [Transformations] Source #
Used to generate quasi-quoters
mkQuoter :: Transformations -> QuasiQuoter Source #
Make a QuasiQuoter using a given set of transformaions
generateName :: Transformations -> Name Source #
Generate TH Name for a quoter based on a set of transformations