Safe Haskell | None |
---|---|
Language | Haskell2010 |
A carrier for Resumable
that disallows resumption of exceptions.
This can be useful when debugging or intercepting the behavior of a computation that invokes resumability.
Synopsis
- runResumable :: ResumableC err m a -> m (Either (SomeError err) a)
- newtype ResumableC err m a = ResumableC {
- runResumableC :: ErrorC (SomeError err) m a
- data SomeError err = SomeError (err a)
- module Control.Effect.Resumable
Resumable carrier
runResumable :: ResumableC err m a -> m (Either (SomeError err) a) Source #
Run a Resumable
effect, returning uncaught errors in Left
and successful computations’ values in Right
.
runResumable
(pure
a) =pure
(Right
a)
runResumable
(throwResumable
err) =pure
(Left
err)
Since: 0.1.0.0
newtype ResumableC err m a Source #
Since: 0.1.0.0
ResumableC | |
|
Instances
An error at some existentially-quantified type index.
SomeError (err a) |
Instances
Eq1 err => Eq (SomeError err) Source # | Equality for Note that since we can’t tell whether the type indices are equal, let alone what |
Ord1 err => Ord (SomeError err) Source # | Ordering for Note that since we can’t tell whether the type indices are equal, let alone what |
Defined in Control.Carrier.Resumable.Either compare :: SomeError err -> SomeError err -> Ordering # (<) :: SomeError err -> SomeError err -> Bool # (<=) :: SomeError err -> SomeError err -> Bool # (>) :: SomeError err -> SomeError err -> Bool # (>=) :: SomeError err -> SomeError err -> Bool # | |
Show1 err => Show (SomeError err) Source # | Showing for Note that since we can’t tell what |
NFData1 err => NFData (SomeError err) Source # | Evaluation of |
Defined in Control.Carrier.Resumable.Either |
Resumable effect
module Control.Effect.Resumable