Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- interpolateQQ :: InterpolationConfig a -> QuasiQuoter
- interpolate :: InterpolationConfig a -> String -> Q Exp
- concatParts :: InterpolationConfig a -> [StringPart a] -> ([a], Q Exp)
- parsingError :: String -> ParseError -> Q a
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 StringPart
s.
The interpolations may also each return some value which gets accumulated as a list in the first output.
parsingError :: String -> ParseError -> Q a Source #