File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ type Except e a = ExceptT e Identity a
7
7
```
8
8
9
9
A 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 ` ,
12
12
allowing the computation to resume and exit successfully.
13
13
14
14
The type parameter ` e ` is the type of exceptions, and ` a ` is the type
Original file line number Diff line number Diff line change 1
1
## Module Control.Monad.Except.Trans
2
2
3
+ This module defines the _ exception monad transformer_ ` ExceptT ` .
4
+
3
5
#### ` ExceptT `
4
6
5
7
``` 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
45
45
46
46
Run a computation in the ` ReaderT ` monad.
47
47
48
- #### ` withReaderT `
48
+ #### ` mapReaderT `
49
49
50
50
``` 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
52
52
```
53
53
54
- Change the type of the context in a ` ReaderT ` monad action.
54
+ Change the type of the result in a ` ReaderT ` monad action.
55
55
56
- #### ` mapReaderT `
56
+ #### ` withReaderT `
57
57
58
58
``` 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
60
60
```
61
61
62
- Change the type of the result in a ` ReaderT ` monad action.
62
+ Change the type of the context in a ` ReaderT ` monad action.
63
63
64
64
You can’t perform that action at this time.
0 commit comments