The async-io-either package

[Tags:bsd3, library]

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

[Skip to Readme]


Dependencies async (>0.2), base (>=4.7 && <5), retry, transformers [details]
License BSD3
Copyright 2017 Sean Chalmers
Author Sean Chalmers
Category Error Handling
Home page
Source repository head: git clone
Uploaded Tue Feb 21 02:00:47 UTC 2017 by schalmers
Distributions NixOS:
Downloads 166 total (14 in the last 30 days)
1 []
Status Docs available [build log]
Last success reported on 2017-02-21 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for async-io-either

Readme for async-io-either-

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.