[Haskell-beginners] newtype with a typclass
razvan.rotaru at gmail.com
Mon Mar 18 16:43:10 CET 2013
It seems that type constructors don't allow usage of typeclasses. Is it not
possible to create polymorphic types in Haskell by declaration?
For example I want a map with String keys and anything that is Showable as
newtype MyMap = Map String Show
How can I do that?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners