[Haskell-cafe] How to define Show [MyType] ?

Martijn van Steenbergen martijn at van.steenbergen.nl
Fri Dec 5 18:25:07 EST 2008


Dmitri O.Kondratiev wrote:
> Thanks everybody for your help!
> I tried to implement showList, but get the same error:

That's because you're trying to implement instance Show [MyType], but 
you have to implement instance Show MyType instead, without the [].

Groetjes,

Martijn.



More information about the Haskell-Cafe mailing list