Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumieval/witherable
Filter with effects
https://github.com/fumieval/witherable
Last synced: 14 days ago
JSON representation
Filter with effects
- Host: GitHub
- URL: https://github.com/fumieval/witherable
- Owner: fumieval
- Created: 2014-12-05T05:50:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T08:05:30.000Z (3 months ago)
- Last Synced: 2024-10-16T06:50:14.904Z (28 days ago)
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/witherable
- Size: 155 KB
- Stars: 72
- Watchers: 9
- Forks: 29
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# witherable
[![Discord](https://img.shields.io/discord/664807830116892674?color=%237095ec&label=Discord&style=plastic)](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