Indeed, with newtype it works like a charm. Thanks!

On Sun, Dec 6, 2015 at 8:26 PM, Marcin Mrotek <marcin.jan.mrotek@gmail.com> wrote:
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