async-io-either: Could be useful

[ bsd3, error-handling, library ] [ Propose Tags ]

A way of running any IO type and capturing any exception, maybe, I think...

[Skip to Readme]




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,
Dependencies async (>0.2), base (>=4.7 && <5), retry, transformers [details]
License BSD-3-Clause
Copyright 2017 Sean Chalmers
Author Sean Chalmers
Category Error Handling
Home page
Source repo head: git clone
Uploaded by schalmers at 2017-02-21T02:00:47Z
Distributions NixOS:
Reverse Dependencies 1 direct, 1 indirect [details]
Downloads 3810 total (16 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-02-21 [all 1 reports]

Readme for async-io-either-

[back to package description]

Async IO Either

This is a tiny package that captures a pattern I've been using a lot...

Essentially I am tired of needing something of (IO a) and it so often coming with exceptions that are not indicated in the type. Generally speaking my application, like many others, is just going to throw in the towel when an exception occurs, but I would prefer it if a value was provided. This would then allow me to decide just what sort of tantrum my application will throw.

I've tried to understand the different manners of handling exceptions in Haskell, and I'm sure there is a better or more fitting approach. But this is what I have for now.