3 ms·
you can't even make Set a functor in Haskell Well sure, because map on a set is only defined over functions that return values that can be compared for equalit
by jrockway 17y ago
you can't even make Set a functor in Haskell
Well sure, because map on a set is only defined over functions that return values that can be compared for equality, whereas the generic functor map is defined over all functions.
- eru 17y agoExactly. (However Data.Set is only defined for comparable values, i.e. the Ord typeclass, not Eq.)