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

Commit d3f1a4c

Browse files
Update readme
1 parent d8fe7d6 commit d3f1a4c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Similarly, if we were using `Free` directly, instead of using type classes to ab
4343
```haskell
4444
data ConfigF a
4545
= ReadConfig (Config -> a)
46-
46+
4747
serverAddress :: ReaderT (PrismT' f ConfigF) (Free f) InetAddress
4848
```
4949

@@ -58,18 +58,20 @@ Therefore, MTL and direct-Free approaches can be considered alternatives to Pure
5858
`IO` only has one function, which should only be used in your `main`:
5959

6060
```haskell
61-
runIO :: forall a. IO a -> Aff (infinity :: INFINITY) a
61+
unwrap :: forall a. IO a -> Aff (infinity :: INFINITY) a
6262
```
6363

6464
This converts an `IO` into an `Aff`, which you can then "convert" into a
6565
runnable `Eff` using `launchAff` or `runAff`.
6666

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

7171
Besides this, `IO` has almost all the same instances as `Aff`, and may be used
7272
in the same way. In addition, a new `MonadIO` class has been introduced which
7373
allows you to lift `IO` computations into other monads that are as powerful.
7474

75+
Similarly, `IOSync` exists as an alternative for `Eff`.
76+
7577
Happy nuke launching!

0 commit comments

Comments
 (0)