printf-mauke-0.5.4: A Perl printf like formatter.

Safe HaskellNone




printf :: String -> ExpQSource

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.TH

at the top of your code and call $(printf "%d %d") x y instead of printf "%d %d" x y.

Note that this printf results in a String, which means that in some cases you'll have to write

 putStr ($(printf "%d %d") x y)

where previously you could have written

 printf "%d %d" x y