[cvs-nhc98] "No default for Main.Class13 at nopos.(861,[(366,865)])"

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Thu, 20 Dec 2001 10:46:39 +0000


> What does
>     No default for  Main.Class13 at nopos.(861,[(366,865)])
> mean?

I'm not sure.  It might be a cryptic way of saying that the class
definition is incorrect.

> The class looks like
> 
>     class Class13 a where
>         class13_1 :: a -> Int
>         class13_2 :: String

This is illegal - all methods of the class must have a type involving
the constrained variable a.

Regards,
    Malcolm