[Haskell-cafe] A problem with Show

2006-08-06 Thread 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 error: Haskell does not

Re: [Haskell-cafe] A problem with Show

2006-08-06 Thread Donald Bruce Stewart
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