Re: [Haskell] Parsing bug in GHC 6.4.1 ?

2006-01-08 Thread Cale Gibbard
On 08/01/06, Bruno Oliveira <[EMAIL PROTECTED]> wrote: > Hello, > > The following class definition: > > > class Foo o where > > (:+) :: o -> o -> o > > and even the following function definition: > > > bar f (x,y) = x :+ y > > are accepted by GHC. However, when I try to create > one instance of

[Haskell] Parsing bug in GHC 6.4.1 ?

2006-01-08 Thread Bruno Oliveira
Hello, The following class definition: > class Foo o where > (:+) :: o -> o -> o and even the following function definition: > bar f (x,y) = x :+ y are accepted by GHC. However, when I try to create one instance of Foo: > instance Foo Int where > x :+ y = x + y I get the following e