Skip to content

Commit c3df82d

Browse files
committed
Docs
1 parent 80eff02 commit c3df82d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

docs/Control/Monad/Except.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ type Except e a = ExceptT e Identity a
77
```
88

99
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`,
1212
allowing the computation to resume and exit successfully.
1313

1414
The type parameter `e` is the type of exceptions, and `a` is the type

docs/Control/Monad/Except/Trans.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Module Control.Monad.Except.Trans
22

3+
This module defines the _exception monad transformer_ `ExceptT`.
4+
35
#### `ExceptT`
46

57
``` purescript

docs/Control/Monad/Reader/Trans.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@ runReaderT :: forall r m a. ReaderT r m a -> r -> m a
4545

4646
Run 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

0 commit comments

Comments
 (0)