Open
Description
The Rpc monad is defined as
type Rpc a = ExceptT RpcError IO a
which is problematic.
It doesn't compose well. Catching errors in the monad gives a false security that exceptions have been caught, since there are also IO exceptions and pure exceptions.
Currently no other feature are needed from the monad except for exceptions (no pun intended).
I'd like to remove the Rpc monad and just throw IO exceptions, and document properly what method will throw, and on best practices.
Metadata
Assignees
Labels
No labels
Activity