This repository was archived by the owner on Jan 17, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ overlapping effects.
1313
1414While the effect system is undoubtedly useful, there are cases where it's more
1515of a hindrance — where it doesn't make reasoning about code easier, but instead,
16- merely adds a ton of boilerplate and semantically meaningless labels get
17- threaded through endless stacks of functions.
16+ merely adds a ton of boilerplate, as semantically meaningless or overlapping
17+ labels get threaded through endless stacks of functions.
1818
1919In those cases, ` IO ` is here to the rescue!
2020
@@ -30,13 +30,13 @@ no runtime overhead or performance penalty for `IO`.
3030` IO ` only has one function, which should only be used in your ` main ` :
3131
3232``` haskell
33- runIO :: forall a . IO a -> AffIO a
33+ runIO :: forall a . IO a -> Aff ( infinity :: INFINITY ) a
3434```
3535
3636This converts an `IO ` into an `Aff `, which you can then " convert" into a
3737runnable `Eff ` using `launchAff` or `runAff` .
3838
39- The effect row is closed, which is intentionally because `INFINITY ` represents
39+ The effect row is closed, which is intentional because `INFINITY ` represents
4040all possible effects. This will help ensure you only call `runIO` at the top
4141level of your program.
4242
You can’t perform that action at this time.
0 commit comments