[Haskell] [Fwd: Bug in Data.IntSet?]
Ketil Malde
Ketil.Malde at bccs.uib.no
Thu Oct 27 09:30:54 EDT 2005
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 <ketil at ii.uib.no>
To: glasgow-haskell-users <glasgow-haskell-users at 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
More information about the Haskell
mailing list