[Haskell-beginners] no instance for monad

Daniel Trstenjak daniel.trstenjak at gmail.com
Sat Oct 20 22:02:53 CEST 2012


On Sat, Oct 20, 2012 at 09:53:09PM +0200, Emmanuel Touzery wrote:
> Thank you! And yes that works...
> 
> But what if i do want to give several parameters to hprint? In my second
> email i noted i get a different error message in that case?
> so for instance:
> TF.hprint handle " {} {}" "a" "b"

Look at the instances of the type class Params:
http://hackage.haskell.org/packages/archive/text-format/0.3.0.8/doc/html/Data-Text-Format-Params.html#t:Params

It tells us, that for multiple parameters you can use a list '["a", "b"]' or a tuple
with up to ten elements '("a", "b")'.


Greetings,
Daniel



More information about the Beginners mailing list