Text.Printf replacement?
Evan Laforge
qdunkan at gmail.com
Tue Sep 10 23:34:46 CEST 2013
> I only see two uses of printf in ghc:
>
> ghc/InteractiveUI.hs: let nums = map (printf
> "-%-3d:") [(1::Int)..]
> compiler/utils/Outputable.lhs: ppr (Fingerprint w1 w2) = text
> (printf "%016x%016x" w1 w2)
>
> So it seems easy to replace that with some hand-written formatting.
Oh, there are also a bunch of references in libraries/. But it looks
like mostly tests for bytestring and dph, so still not too bad.
More information about the Libraries
mailing list