<div dir="ltr">It appears PrintfArg and its methods are fully exported.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 24, 2017 at 8:19 AM, Baa <span dir="ltr"><<a href="mailto:aquagnu@gmail.com" target="_blank">aquagnu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">But how to do it if "methods" are not exporting?<br>
<div class="HOEnZb"><div class="h5"><br>
> According to<br>
> <a href="https://hackage.haskell.org/package/base-4.10.0.0/docs/Text-Printf.html#g:2" rel="noreferrer" target="_blank">https://hackage.haskell.org/<wbr>package/base-4.10.0.0/docs/<wbr>Text-Printf.html#g:2</a>,<br>
> you only need to implement `PrintfArg`. There is also an example for<br>
> `()`.<br>
><br>
> Baa <<a href="mailto:aquagnu@gmail.com">aquagnu@gmail.com</a>> schrieb am Fr., 24. Nov. 2017 um 13:33 Uhr:<br>
><br>
> > Hello All!<br>
> ><br>
> > As I understand to use Text.Printf.printf with custom types or to<br>
> > return result as Text instead of String I must implement some<br>
> > class instances: PrintfType, PrintfArg. But how to do this if they<br>
> > are exported from module as type-names only - without its methods<br>
> > (i.e. not "Printf (..)", but "Printf") ?<br>
> ><br>
> > I tried to import Text.Printf.Internal but seems that no such<br>
> > submodule...<br>
> ><br>
> > Any ideas?<br>
> ><br>
> > ===<br>
> > Best regards, Paul<br>
> > ______________________________<wbr>_________________<br>
> > Beginners mailing list<br>
> > <a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
> > <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
> ><br>
<br>
______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>