Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parsonsmatt/plucky
Plucky errors and exceptions
https://github.com/parsonsmatt/plucky
Last synced: 14 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T22:45:43.000Z (almost 4 years ago)
- Last Synced: 2024-10-04T13:21:06.219Z (about 1 month ago)
- Language: Haskell
- Size: 25.4 KB
- Stars: 20
- Watchers: 5
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# plucky
[![Build Status](https://travis-ci.org/parsonsmatt/plucky.svg?branch=master)](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.