2 ms·Exactly. (However Data.Set is only defined for comparable values, i.e. the Ord typeclass, not Eq.)by eru 17y agoExactly. (However Data.Set is only defined for comparable values, i.e. the Ord typeclass, not Eq.)jrockway 17y agoThat is an efficiency hack to make it O(n log n) instead of O(n^2) rather than an intrinsic property of sets, functors, or Haskell :)eru 17y agoIndeed. But Hindley-Milner [1] type systems have trouble expressing commutative stuff in general. [1] I hope I got the names correct.