Improve IntSet.{union, difference, intersection}.
authorMilan Straka <fox@ucw.cz>
Sat, 14 Apr 2012 16:44:37 +0000 (18:44 +0200)
committerMilan Straka <fox@ucw.cz>
Sat, 14 Apr 2012 16:44:37 +0000 (18:44 +0200)
commit73328131d9573d0b1d2cd2d18abad7399368e816
tree0338e738ed5e0afae07f3a1d6e271baffcd11f20
parent0b3612276f50afeb89dbdf76d27c3a7c48508e48
Improve IntSet.{union, difference, intersection}.

Incorporate improvements achieved in IntMap implementation by using
mergeWithKey' -- i.e., reorder and modify pattern matches of combining
functions, to play nicely with pattern match compiler. Also improve
the ``Tip vs Bin'' case handling.
Data/IntSet.hs