Sigh. My system insists on rewriting outgoing mail headers, and ghc-users refuses non-subscribers to post there. I'm too tired to fight this at the moment, so I'll send it here in the hope that it will be picked up by the right adressee.
-k -------- Original Message -------- Subject: Bug in Data.IntSet? Date: Thu, 27 Oct 2005 15:25:30 +0200 From: Ketil Malde <[EMAIL PROTECTED]> To: glasgow-haskell-users <glasgow-haskell-users@haskell.org> AFAICT, there is a bug in Data.IntSet.split Here's an excerpt from GHCi: *Main> let m=482 in Data.IntSet.split (16*m) $ Data.IntSet.fromList (List.map (m*) [17,18,19,30,40]) ({8194,8676,9158},{14460,19280}) *Main> let m=481 in Data.IntSet.split (16*m) $ Data.IntSet.fromList (List.map (m*) [17,18,19,30,40]) ({},{8177,8658,9139,14430,19240}) *Main> let m=481 in Data.Set.split (16*m) $ Data.Set.fromList (List.map (m*) [17,18,19,30,40]) ({},{8177,8658,9139,14430,19240}) *Main> let m=482 in Data.Set.split (16*m) $ Data.Set.fromList (List.map (m*) [17,18,19,30,40]) ({},{8194,8676,9158,14460,19280}) *Main> let m=482 in Data.Set.split (16*m) $ Data.Set.fromList (List.map (m*) [17,18,19,30,40]::[Int]) ({},{8194,8676,9158,14460,19280}) % ghci --version The Glorious Glasgow Haskell Compilation System, version 6.4.1 -k _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell