File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog for [ ` containers ` package] ( http://github.com/haskell/containers )
2
2
3
+ ## Next release
4
+
5
+ ### Breaking changes
6
+
7
+ * ` Data.IntMap.Lazy.split ` , ` Data.IntMap.Strict.split ` ,
8
+ ` Data.IntMap.Lazy.splitLookup ` and ` Data.IntMap.Strict.splitLookup ` are now
9
+ strict in the key. Previously, the key was ignored for an empty map.
10
+ (Soumik Sarkar)
11
+
3
12
## 0.7
4
13
5
14
### Breaking changes
Original file line number Diff line number Diff line change @@ -2815,7 +2815,7 @@ split k t =
2815
2815
_ -> case go k t of
2816
2816
(lt :*: gt) -> (lt, gt)
2817
2817
where
2818
- go k' t'@ (Bin p m l r)
2818
+ go ! k' t'@ (Bin p m l r)
2819
2819
| nomatch k' p m = if k' > p then t' :*: Nil else Nil :*: t'
2820
2820
| zero k' m = case go k' l of (lt :*: gt) -> lt :*: bin p m gt r
2821
2821
| otherwise = case go k' r of (lt :*: gt) -> bin p m l lt :*: gt
@@ -2857,7 +2857,7 @@ splitLookup k t =
2857
2857
_ -> go k t
2858
2858
of SplitLookup lt fnd gt -> (lt, fnd, gt)
2859
2859
where
2860
- go k' t'@ (Bin p m l r)
2860
+ go ! k' t'@ (Bin p m l r)
2861
2861
| nomatch k' p m =
2862
2862
if k' > p
2863
2863
then SplitLookup t' Nothing Nil
You can’t perform that action at this time.
0 commit comments