File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ type Except e a = ExceptT e Identity a
77```
88
99A parametrizable exception monad; computations are either exceptions or
10- pure values. If an exception is thrown (see ` throwE ` ), the computation
11- terminates with that value. Exceptions may also be caught with ` catchE ` ,
10+ pure values. If an exception is thrown (see ` throwError ` ), the computation
11+ terminates with that value. Exceptions may also be caught with ` catchError ` ,
1212allowing the computation to resume and exit successfully.
1313
1414The type parameter ` e ` is the type of exceptions, and ` a ` is the type
Original file line number Diff line number Diff line change 11## Module Control.Monad.Except.Trans
22
3+ This module defines the _ exception monad transformer_ ` ExceptT ` .
4+
35#### ` ExceptT `
46
57``` purescript
Original file line number Diff line number Diff line change @@ -45,20 +45,20 @@ runReaderT :: forall r m a. ReaderT r m a -> r -> m a
4545
4646Run a computation in the ` ReaderT ` monad.
4747
48- #### ` withReaderT `
48+ #### ` mapReaderT `
4949
5050``` purescript
51- withReaderT :: forall r1 r2 m a b. (r2 -> r1 ) -> ReaderT r1 m a -> ReaderT r2 m a
51+ mapReaderT :: forall r m1 m2 a b. (m1 a -> m2 b ) -> ReaderT r m1 a -> ReaderT r m2 b
5252```
5353
54- Change the type of the context in a ` ReaderT ` monad action.
54+ Change the type of the result in a ` ReaderT ` monad action.
5555
56- #### ` mapReaderT `
56+ #### ` withReaderT `
5757
5858``` purescript
59- mapReaderT :: forall r m1 m2 a b. (m1 a -> m2 b ) -> ReaderT r m1 a -> ReaderT r m2 b
59+ withReaderT :: forall r1 r2 m a b. (r2 -> r1 ) -> ReaderT r1 m a -> ReaderT r2 m a
6060```
6161
62- Change the type of the result in a ` ReaderT ` monad action.
62+ Change the type of the context in a ` ReaderT ` monad action.
6363
6464
You can’t perform that action at this time.
0 commit comments