Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

Commit 92906d0

Browse files
Mention runIO in readme again
1 parent 9159e08 commit 92906d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@ Therefore, MTL and direct-Free approaches can be considered alternatives to Pure
5858
`IO` is a newtype for `Aff`, which you can unwrap to be used in your `main`:
5959

6060
```haskell
61-
import Data.Newtype (unwrap)
62-
63-
unwrap :: forall a. IO a -> Aff (infinity :: INFINITY) a
61+
runIO :: forall a. IO a -> Aff (infinity :: INFINITY) a
6462
```
6563

6664
This converts an `IO` into an `Aff`, which you can then "convert" into a
6765
runnable `Eff` using `launchAff` or `runAff`.
6866

6967
The effect row is closed, which is intentional because `INFINITY` represents
70-
all possible effects. This will help ensure you only call `unwrap` at the top
68+
all possible effects. This will help ensure you only call `runIO` at the top
7169
level of your program.
7270

7371
Besides this, `IO` has almost all the same instances as `Aff`, and may be used

0 commit comments

Comments
 (0)