Thank you, you&#39;re right again. I had actually tried that but it failed and I didn&#39;t look at the compilation error hard enough.<br><br>It said:<br>Ambiguous type variable `t0&#39; in the constraints:<br>      (Data.Text.Buildable.Buildable<br>
         t0) arising from a use of `TF.hprint&#39; at JsonWriter.hs:94:17-25<br>      (Data.String.IsString t0) arising from the literal `&quot;b&quot;&#39;<br>                                at JsonWriter.hs:94:49-51<br>
<br>And now that thanks to your email I knew this was the right direction, I read properly the error message and got to that working solution:<br><br>TF.hprint handle &quot; {} {}&quot; [&quot;a&quot; :: T.Text, &quot;b&quot; :: T.Text]<br>
<br> Unfortunately it&#39;s not very compact. I guess the problem is that this Buildable data can take either a String or a Text and because I build with OverloadedStrings the compiler doesn&#39;t know which one to prioritize?<br>
 If that&#39;s the case I wish Buildable would only accept Text and if you really want to give a String you could always pack it. But maybe I&#39;m missing something. Is there no way to get a more compact line in this case? Although most of the time it&#39;s true that the parameters for the print will in fact be other values which were assigned and which type was determined previously in the program.<br>
<br> Anyway thank you a lot, you unblocked me!<br><br>Emmanuel<br><br><br><div class="gmail_quote">On Sat, Oct 20, 2012 at 10:02 PM, Daniel Trstenjak <span dir="ltr">&lt;<a href="mailto:daniel.trstenjak@gmail.com" target="_blank">daniel.trstenjak@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Sat, Oct 20, 2012 at 09:53:09PM +0200, Emmanuel Touzery wrote:<br>
&gt; Thank you! And yes that works...<br>
&gt;<br>
&gt; But what if i do want to give several parameters to hprint? In my second<br>
&gt; email i noted i get a different error message in that case?<br>
&gt; so for instance:<br>
&gt; TF.hprint handle &quot; {} {}&quot; &quot;a&quot; &quot;b&quot;<br>
<br>
</div>Look at the instances of the type class Params:<br>
<a href="http://hackage.haskell.org/packages/archive/text-format/0.3.0.8/doc/html/Data-Text-Format-Params.html#t:Params" target="_blank">http://hackage.haskell.org/packages/archive/text-format/0.3.0.8/doc/html/Data-Text-Format-Params.html#t:Params</a><br>

<br>
It tells us, that for multiple parameters you can use a list &#39;[&quot;a&quot;, &quot;b&quot;]&#39; or a tuple<br>
with up to ten elements &#39;(&quot;a&quot;, &quot;b&quot;)&#39;.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Greetings,<br>
Daniel<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br>