Strange error in show for datatype

Koen Claessen [email protected]
Thu, 4 Oct 2001 13:03:49 +0200 (MET DST)

Olaf Chitil wrote:

 | Admittedly, many Haskell beginners fall into the `show
 | []' trap.

Indeed. And this is a perfect example of the fact that all
this bottom-dictionary passing does not work. The type of
the list still matters though:

  Hugs> show ([] :: [Char])

  Hugs> show ([] :: [Int])