<div dir="ltr">i&#39;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">&lt;<a href="mailto:bart@cs.pdx.edu" target="_blank">bart@cs.pdx.edu</a>&gt;</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&#39;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&#39;s done. But I&#39;m not willing to manage the move, since I&#39;m not<br>
that Cabal/GHC-literate and haven&#39;t dug around in Hackage enough to<br>
know what&#39;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&#39;t know if there&#39;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 &lt;<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>&gt; wrote:<br>
&gt;&gt; I only see two uses of printf in ghc:<br>
&gt;&gt;<br>
&gt;&gt; ghc/InteractiveUI.hs:                 let nums  = map (printf<br>
&gt;&gt; &quot;-%-3d:&quot;) [(1::Int)..]<br>
&gt;&gt; compiler/utils/Outputable.lhs:    ppr (Fingerprint w1 w2) = text<br>
&gt;&gt; (printf &quot;%016x%016x&quot; w1 w2)<br>
&gt;&gt;<br>
&gt;&gt; So it seems easy to replace that with some hand-written formatting.<br>
&gt;<br>
&gt; Oh, there are also a bunch of references in libraries/.  But it looks<br>
&gt; like mostly tests for bytestring and dph, so still not too bad.<br>
&gt; _______________________________________________<br>
&gt; Libraries mailing list<br>
&gt; <a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
&gt; <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>