| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Text.Printf.Mauke.TH
Documentation
printf :: String -> ExpQ Source
A static checking layer on top of printf. It hasn't
been tested much, but static argument checking is always a good idea. To use
it, add
{-# LANGUAGE TemplateHaskell #-}
import Text.Printf.Mauke.THat the top of your code and call $( instead of
printf "%d %d") x y.printf "%d %d" x y
Starting with version 0.6.0 of this library, printf 's return type is
overloaded: Like the non-TH printf it can return either
a String or . (It used to return IO aString unconditionally.)