haskell / haskell/statistics

`exceptions`-based exceptions

Offen
#141 13 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Haskell
Sterne
309
Forks
76
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.