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
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