
8 Dec
2015
8 Dec
'15
7:20 a.m.
Indeed, with newtype it works like a charm. Thanks!
On Sun, Dec 6, 2015 at 8:26 PM, Marcin Mrotek
Hello,
This is not an issue with MultiParamTypeClasses. It's just that type synonyms always have to be used fully applied. You can use a newtype instead:
newtype AdjList a = AdjList [(a,[a])]
instance Graph AdjList Int where (...)
Best regards, Marcin Mrotek
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners