module Control.Effect.Throw
(
Throw(..)
, throwError
, Algebra
, Effect
, Has
, run
) where
import Control.Algebra
import Control.Effect.Throw.Internal (Throw(..))
throwError :: Has (Throw e) sig m => e -> m a
throwError :: e -> m a
throwError = Throw e m a -> m a
forall (eff :: (* -> *) -> * -> *) (sig :: (* -> *) -> * -> *)
(m :: * -> *) a.
(Member eff sig, Algebra sig m) =>
eff m a -> m a
send (Throw e m a -> m a) -> (e -> Throw e m a) -> e -> m a
forall b c a. (b -> c) -> (a -> b) -> a -> c
. e -> Throw e m a
forall e (m :: * -> *) k. e -> Throw e m k
Throw