[Haskell-cafe] Class

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Nov 3 04:59:02 EST 2006


Hello Slavomir,

Thursday, November 2, 2006, 5:51:17 PM, you wrote:

> I wouldn't like to manually define instances of Visible for all types
> that have Show instances.

believe it or not but i had the same problems

> I think I need something like that:

> class Visible a where
> instance Show a => Visible a where

> Which still doesn't work. Any ideas?

this will work. with addition of

instance Visible a => Visible [a] where

this will not work. it's a mission impossible


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list