Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

Commit cf0b510

Browse files
committed
Fix #104, add missing word
1 parent 2db82bb commit cf0b510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/chapter11.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ The `runExceptT` handler is used to run a computation of type `ExceptT e m a`.
462462
This API is similar to that provided by the `purescript-exceptions` package and the `Exception` effect. However, there are some important differences:
463463

464464
- `Exception` uses actual JavaScript exceptions, whereas `ExceptT` models errors as a pure data structure.
465-
- The `Exception` effect only supports exceptions of one type, namely JavaScript's `Error` type, whereas `ExceptT` supports errors of type. In particular, we are free to define new error types.
465+
- The `Exception` effect only supports exceptions of one type, namely JavaScript's `Error` type, whereas `ExceptT` supports errors of any type. In particular, we are free to define new error types.
466466

467467
Let's try out `ExceptT` by using it to wrap the `Writer` monad. Again, we are free to use actions from the monad transformer `ExceptT e` directly, but computations in the `Writer` monad should be lifted using `lift`:
468468

0 commit comments

Comments
 (0)