<div dir="ltr">i'm actually not aware of many / any? package that use the printf style approach! <div style>(i could be wrong, but i suspect its not widely used?)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Sep 12, 2013 at 2:21 AM, Bart Massey <span dir="ltr"><<a href="mailto:bart@cs.pdx.edu" target="_blank">bart@cs.pdx.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think the only references that matter are the ones in base, no? And<br>
there aren't any there that I could find, except Text.Printf itself.<br>
If we lift Text.Printf into a printf package, then make sure that<br>
things reference this package, it should all just compile, I think.<br>
<br>
I would vote for trying to do this for 7.8, and only merging my stuff<br>
once it's done. But I'm not willing to manage the move, since I'm not<br>
that Cabal/GHC-literate and haven't dug around in Hackage enough to<br>
know what's affected. Perhaps the biggest objection to this whole plan<br>
is the potentially large amount of packages in Hackage whose .cabal<br>
files need to change: I don't know if there's some easy way to smooth<br>
this transition?<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Sep 10, 2013 at 2:34 PM, Evan Laforge <<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>> wrote:<br>
>> I only see two uses of printf in ghc:<br>
>><br>
>> ghc/InteractiveUI.hs: let nums = map (printf<br>
>> "-%-3d:") [(1::Int)..]<br>
>> compiler/utils/Outputable.lhs: ppr (Fingerprint w1 w2) = text<br>
>> (printf "%016x%016x" w1 w2)<br>
>><br>
>> So it seems easy to replace that with some hand-written formatting.<br>
><br>
> Oh, there are also a bunch of references in libraries/. But it looks<br>
> like mostly tests for bytestring and dph, so still not too bad.<br>
> _______________________________________________<br>
> Libraries mailing list<br>
> <a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
</div></div></blockquote></div><br></div>