morley-1.20.0: Developer tools for the Michelson Language
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

split :: (Char -> Bool) -> String -> [String] Source #

transformationsPowerSet :: [Transformations] Source #

Used to generate quasi-quoters

generateName :: Transformations -> Name Source #

Generate TH Name for a quoter based on a set of transformations

mkQuoter :: Transformations -> QuasiQuoter Source #

Make a QuasiQuoter using a given set of transformaions