Safe Haskell | None |
---|
Documentation
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 $(
instead of
printf
"%d %d") x y
.
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