This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ instance monadEff :: Monad (Eff e)
24
24
#### ` Pure `
25
25
26
26
``` purescript
27
- type Pure a = forall e. Eff e a
27
+ type Pure a = Eff () a
28
28
```
29
29
30
30
The ` Pure ` type synonym represents _ pure_ computations, i.e. ones in which all effects have been handled.
@@ -39,9 +39,6 @@ runPure :: forall a. Pure a -> a
39
39
40
40
Run a pure computation and return its result.
41
41
42
- Note: since this function has a rank-2 type, it may cause problems to apply this function using the ` $ ` operator. The recommended approach
43
- is to use parentheses instead.
44
-
45
42
#### ` untilE `
46
43
47
44
``` purescript
Original file line number Diff line number Diff line change @@ -21,12 +21,9 @@ foreign import bindE :: forall e a b. Eff e a -> (a -> Eff e b) -> Eff e b
21
21
-- | The `Pure` type synonym represents _pure_ computations, i.e. ones in which all effects have been handled.
22
22
-- |
23
23
-- | The `runPure` function can be used to run pure computations and obtain their result.
24
- type Pure a = forall e . Eff e a
24
+ type Pure a = Eff () a
25
25
26
26
-- | Run a pure computation and return its result.
27
- -- |
28
- -- | Note: since this function has a rank-2 type, it may cause problems to apply this function using the `$` operator. The recommended approach
29
- -- | is to use parentheses instead.
30
27
foreign import runPure :: forall a . Pure a -> a
31
28
32
29
instance functorEff :: Functor (Eff e ) where
You can’t perform that action at this time.
0 commit comments