[Haskell-beginners] Issue with MultiParamTypeClasses

Marcin Mrotek marcin.jan.mrotek at gmail.com
Sun Dec 6 18:26:59 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20151206/acc804ba/attachment.html>


More information about the Beginners mailing list