https://github.com/parsonsmatt/plucky
Plucky errors and exceptions
https://github.com/parsonsmatt/plucky
Last synced: 2 months ago
JSON representation
Plucky errors and exceptions
- Host: GitHub
- URL: https://github.com/parsonsmatt/plucky
- Owner: parsonsmatt
- License: bsd-3-clause
- Created: 2020-01-21T03:47:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T22:45:43.000Z (over 4 years ago)
- Last Synced: 2025-05-05T20:11:56.317Z (2 months ago)
- Language: Haskell
- Size: 25.4 KB
- Stars: 20
- Watchers: 4
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# plucky
[](https://travis-ci.org/parsonsmatt/plucky)
Haskell [has a problem with problems](https://www.parsonsmatt.org/2018/11/03/trouble_with_typed_errors.html).
We have `IO` exceptions for unchecked exceptions - the same sort that plague Ruby, Python, JavaScript, and other languages.
We have `ExceptT` for checked exceptions, but Java has us beat on ergonomics and usability of checked exceptions.
Can we do better?
Well, the blog post points to [`generic-lens`](https://hackage.haskell.org/package/generic-lens), but that's kind of hard to use.
Can we do better, and easier?Yes! I alluded to this in my blog post [Plucking Constraints](https://www.parsonsmatt.org/2020/01/03/plucking_constraints.html).
This library provides an API and demonstration on 'plucking' error constraints.