Replace these
with data-or
#2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! I'm one of the maintainers of original
non-empty-containers
, and I'm very impressed with the breadth of your library's API.non-empty-containers
should most likely be deprecated in favour of this.I recently needed
partition
behaviour for a non-emptySet
, and noticed that that exact function exists here. So I pulled the dependency, and to my surprise,lens
started being compiled as a dep. Surprised, I looked deeper, and noticed thatthese
pulls in a vast web of dependencies, too many for the project I'm working on. I noticed also thatthese
advertises thedata-or
library as a light-weight alternative.So, this PR replaces usage of
these
in this library withdata-or
. You use theThese
type strictly for its constructor behaviour, not for any of the fanciness that its library's large dependency graph offers, so this was a straight-forward change.Here is the dependency graph of


nonempty-containers
withthese
:... and here it is with
data-or
:Hopefully you find this useful.