Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- toSplices :: String -> OutputType -> Q ([Pat], Exp)
- data OutputType
Documentation
toSplices :: String -> OutputType -> Q ([Pat], Exp) Source #
Takes a format string as input and produces a tuple (args, outputExpr)
.
This function processes character escapes as they would appear in Haskell source code. It will emit warnings (or throw an error, as appropriate) when given an invalid format string.
Use if you wish to leverage th-printf
in conjunction with, for example, an existing
logging library.
data OutputType Source #