Text.Printf replacement?
Bart Massey
bart at cs.pdx.edu
Thu Sep 12 08:21:34 CEST 2013
I think the only references that matter are the ones in base, no? And
there aren't any there that I could find, except Text.Printf itself.
If we lift Text.Printf into a printf package, then make sure that
things reference this package, it should all just compile, I think.
I would vote for trying to do this for 7.8, and only merging my stuff
once it's done. But I'm not willing to manage the move, since I'm not
that Cabal/GHC-literate and haven't dug around in Hackage enough to
know what's affected. Perhaps the biggest objection to this whole plan
is the potentially large amount of packages in Hackage whose .cabal
files need to change: I don't know if there's some easy way to smooth
this transition?
On Tue, Sep 10, 2013 at 2:34 PM, Evan Laforge <qdunkan at gmail.com> wrote:
>> 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.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
More information about the Libraries
mailing list