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

19 Dec
2001
19 Dec
'01
6:31 p.m.
What does No default for Main.Class13 at nopos.(861,[(366,865)]) mean? The class looks like class Class13 a where class13_1 :: a -> Int class13_2 :: String followed by a nestable comment and then another class. Thanks Ian

20 Dec
20 Dec
10:46 a.m.
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
8687
Age (days ago)
8688
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ian Lynagh
-
Malcolm Wallace