haskell / haskell/containers

Set.split and Set.splitMember should be strict in the key

Open
#1,171 0 comments 0 reactions 0 assignees View on GitHub
major-release Set strictness
Dominant language
Haskell
Stars
355
Forks
194
Avg merge
3d 4h
Merged PRs (30d)
4

Description

```
λ> Map.split undefined Map.empty
*** Exception: Prelude.undefined
λ> Map.splitLookup undefined Map.empty
*** Exception: Prelude.undefined
λ> Set.split undefined Set.empty
(fromList [],fromList [])
λ> Set.splitMember undefined Set.empty
(fromList [],False,fromList [])
```

This is similar to #982 and #983, unfortunately I didn't check `Set` at the time.

This changes behavior, so it will have to wait for the next major release.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.