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)
2424#### ` Pure `
2525
2626``` purescript
27- type Pure a = forall e. Eff e a
27+ type Pure a = Eff () a
2828```
2929
3030The ` 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
3939
4040Run a pure computation and return its result.
4141
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-
4542#### ` untilE `
4643
4744``` 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
2121-- | The `Pure` type synonym represents _pure_ computations, i.e. ones in which all effects have been handled.
2222-- |
2323-- | 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
2525
2626-- | 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.
3027foreign import runPure :: forall a . Pure a -> a
3128
3229instance functorEff :: Functor (Eff e ) where
You can’t perform that action at this time.
0 commit comments