Text.Printf replacement?

Carter Schonwald carter.schonwald at gmail.com
Thu Sep 12 08:41:14 CEST 2013


i'm actually not aware of many / any? package that use the printf style
approach!
(i could be wrong, but i suspect its not widely used?)


On Thu, Sep 12, 2013 at 2:21 AM, Bart Massey <bart at cs.pdx.edu> wrote:

> 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
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130912/ed1014e1/attachment.htm>


More information about the Libraries mailing list