custom-interpolation-0.1.0.1: Customizable string interpolation quasiquoters
Safe HaskellNone
LanguageHaskell2010

CustomInterpolation.TH

Synopsis

Documentation

interpolateQQ :: InterpolationConfig a -> QuasiQuoter Source #

Create a new QuasiQuoter that interpolates strings as specified by the given InterpolationConfig.

interpolate :: InterpolationConfig a -> String -> Q Exp Source #

Interpolate a string as specified by the given InterpolationConfig.

concatParts :: InterpolationConfig a -> [StringPart a] -> ([a], Q Exp) Source #

Concatenate the literals and interpolated parts of a list of StringParts. The interpolations may also each return some value which gets accumulated as a list in the first output.