agentm / agentm/project-m36

Consider using "checked exceptions" for client APIs

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
952
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Not like Java. Just had to get that out of the way.

This blog post and the library he's talking about demonstrates a pretty cool way of keeping exceptions in the types: https://functor.tokyo/blog/2017-05-10-servant-checked-exceptions#.WR5lMEsqJ-4.reddit

I.e. instead of putting all possible exception cases in `RelationalError`, you could pull them out logically and use his API as an example of how to do make a cleaner client API. Possibly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.