Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
toSplices :: String -> 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.