News for hackers. Stuff that matters.
Re:What I Wish I Knew When Learning Haskell by velis_vel on Sunday December 08, 2013 @01:02AM (#6869109)
Set basically has an Ord constraint on the type of things you have a Set of since most of the functions on it have an Ord a constraint, and Monads can't be constrained in what types they wrap. This is also why it's not a Functor; you can define

  setMap :: (Ord a, Ord b) => (a -> b) -> Set a -> Set b
but that's still more restricted than fmap.

There are no comments on this comment yet.