
6 Jun
2007
6 Jun
'07
12:17 p.m.
"David Fox"
What I was wondering is what those "No default for Main.CNode" messages would be expected to mean. Maybe if I could supply the default it claims is missing I could work around this problem.
The message refers to the standard Haskell class-defaulting mechanism (which is only supposed to cut in when there is an ambiguous constrained type, and one of the constraints is Num). You can attempt to use the user-defined defaulting feature of Haskell to workaround this type-checker bug. e.g. module Mine where default (Integer,Double,TNode) data TNode = ... although I can't guarantee the results. Regards, Malcolm