File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed
Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1717 " package.json"
1818 ],
1919 "dependencies" : {
20- "purescript-eff" : " ^1 .0.0"
20+ "purescript-eff" : " ^2 .0.0"
2121 }
2222}
Original file line number Diff line number Diff line change 1- /* global exports */
21"use strict" ;
32
4- // module Control.Monad.Eff.Ref
5-
63exports . newRef = function ( val ) {
74 return function ( ) {
85 return { value : val } ;
Original file line number Diff line number Diff line change 77module Control.Monad.Eff.Ref where
88
99import Prelude (Unit , unit )
10- import Control.Monad.Eff (Eff () )
10+ import Control.Monad.Eff (Eff )
1111
1212-- | The effect associated with the use of global mutable variables.
1313foreign import data REF :: !
Original file line number Diff line number Diff line change 22
33module Control.Monad.Eff.Ref.Unsafe where
44
5- import Control.Monad.Eff (Eff () )
5+ import Control.Monad.Eff (Eff )
66import Control.Monad.Eff.Ref (REF )
7- import Control.Monad.Eff.Unsafe (unsafeInterleaveEff )
7+ import Control.Monad.Eff.Unsafe (unsafeCoerceEff )
88
99-- | This handler function unsafely removes the `Ref` effect from an
1010-- | effectful action.
@@ -13,4 +13,4 @@ import Control.Monad.Eff.Unsafe (unsafeInterleaveEff)
1313-- | typechecker that a particular mutable reference does not escape
1414-- | its scope.
1515unsafeRunRef :: forall eff a . Eff (ref :: REF | eff ) a -> Eff eff a
16- unsafeRunRef = unsafeInterleaveEff
16+ unsafeRunRef = unsafeCoerceEff
You can’t perform that action at this time.
0 commit comments