Hello,
I made a simple datatype called Pair and I'd like to make it an instance of
Show class. But when I try to do that I run into troubles:
data Pair a b = Pair a b
instance Show a b = Show (Pair a b) where show (Pair a b) = show a ++ _ ++
show b
In Hugs I get this error: Haskell does not
zdenes:
Hello,
I made a simple datatype called Pair and I'd like to make it an instance of
Show class. But when I try to do that I run into troubles:
data Pair a b = Pair a b
instance Show a b = Show (Pair a b) where show (Pair a b) = show a ++ _ ++
show b
In Hugs I get this