haskell / haskell/statistics

`exceptions`-based exceptions

Open
#141 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
309
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Rather than Nothing/0/NaN etc. (the first option being way better than the others), it would be great to generalize code that may throw to the MonadThrow class from `exceptions`.

This way, functions using `throwM (e :: Exception)` would have the signature `MonadThrow m => ... -> m ( ... )`, where `m` may become `Maybe`, or `Either e`, or even `IO`, according to the calling context.

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.