Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Deal with throw and try effects
Synopsis
- class ThrowEffect ex eff where
- class TryEffect ex eff where
- module Control.Exception.Safe
Documentation
class ThrowEffect ex eff where Source #
A class for binary effects that can possibly throw exceptions
Instances
(MonadThrow m, Exception ex) => ThrowEffect ex (Kleisli m) Source # | |
ThrowEffect ex core => ThrowEffect ex (Rope record mantle core) Source # | |
ThrowEffect ex core => ThrowEffect ex (RopeRunner record mantle interp core) Source # | |
Defined in Control.Kernmantle.Rope.Internal throwE :: RopeRunner record mantle interp core (Either ex b) b Source # | |
(Applicative f, ThrowEffect ex eff) => ThrowEffect ex (Cayley f eff) Source # | |
class TryEffect ex eff where Source #
A class for binary effects that can catch exceptions
Instances
(MonadCatch m, Exception ex) => TryEffect ex (Kleisli m) Source # | |
TryEffect ex core => TryEffect ex (Rope record mantle core) Source # | |
TryEffect ex core => TryEffect ex (RopeRunner record mantle interp core) Source # | |
Defined in Control.Kernmantle.Rope.Internal tryE :: RopeRunner record mantle interp core a b -> RopeRunner record mantle interp core a (Either ex b) Source # | |
(Functor f, TryEffect ex eff) => TryEffect ex (Cayley f eff) Source # | |
module Control.Exception.Safe