Ketil Malde wrote:
String is not an instance of class Foo -- single param
No instance for (Bar String Int) -- multi-param
If you quote things, you can also consider:
'String Int' is not an instance of class 'Bar'.
Downside is that 'String Int' by itself may be confusingly unhaskellish.
String is not an instance of class Foo
String and Int do not form an instance of multi-parameter class Bar
...alternatively, you can put the more mathsy form in brackets after the
simple one, to make the generalisation from the single param to the
multi-param more clear:
String is not an instance of class Foo (No instance for Foo String)
No instance for (Bar String Int)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe