th-printf-0.6.0: Quasiquoters for printf

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Printf.Lib

Synopsis

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.