We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f17bc0 commit 2c27deeCopy full SHA for 2c27dee
README.md
@@ -97,6 +97,14 @@ liftEff $ trace "Hello world!"
97
98
This lets you write your whole program in `Aff`, and still call out to synchronous `Eff` code.
99
100
+If your `Eff` code throws exceptions (`err :: Exception`), you can remove the exceptions using `liftEff'`
101
+to bring the exception to the value level as an `Either Error a`:
102
+
103
+```purescript
104
+do e <- liftEff' myExcFunc
105
+ liftEff $ either (trace "caught exception") (trace "no exception") e
106
+```
107
108
## Exceptions
109
110
The `Aff` monad has error handling baked in, so ordinarily you don't have to worry about it.
0 commit comments