On 19/05/2011 10:11 PM, Artyom Kazak wrote:
And I can declare an instance for (x, y) which does NOT implies (Show x):
instance Show (x, y) where
show _ = "I'm tuple! Hooray!"
Ah. So it's a feature.
Fortunately I refactored the program where this came up, so it's no
longer an issue. I just wanted to see whether or not it was a bug.
PS. Wouldn't such an instance require FlexibleContexts or something?
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe