https://github.com/fumieval/witherable
Filter with effects
https://github.com/fumieval/witherable
Last synced: about 1 year ago
JSON representation
Filter with effects
- Host: GitHub
- URL: https://github.com/fumieval/witherable
- Owner: fumieval
- Created: 2014-12-05T05:50:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-01-05T12:06:25.000Z (over 1 year ago)
- Last Synced: 2025-05-09T14:35:29.169Z (about 1 year ago)
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/witherable
- Size: 158 KB
- Stars: 73
- Watchers: 8
- Forks: 29
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# witherable
[](https://discord.gg/DG93Tgs)
witherable-class defines `Filterable` and `Witherable` class with instances.
witherable provides indexed variants, optic-style generalised withers and extra instances.
Why not just `fmap catMaybes . traverse f`? Because `wither` can be defined to traverse the structure once. Also, its parametrity ensures that filtering works in a sane way. For more details, see also [FilterableとWitherableについて](https://viercc.github.io/blog/posts/2021-10-24-witherable-1.html)
Dependencies:
* base-orphans
* containers
* hashable
* transformers
* unordered-containers
* vector