Skip to content

Commit

Permalink
Merge pull request #12 from purescript/bump
Browse files Browse the repository at this point in the history
Prepare for 2.0 release
  • Loading branch information
garyb authored Oct 2, 2016
2 parents 59fcc2d + a84c172 commit d6439d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"package.json"
],
"dependencies": {
"purescript-eff": "^1.0.0"
"purescript-eff": "^2.0.0"
}
}
3 changes: 0 additions & 3 deletions src/Control/Monad/Eff/Ref.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* global exports */
"use strict";

// module Control.Monad.Eff.Ref

exports.newRef = function (val) {
return function () {
return { value: val };
Expand Down
2 changes: 1 addition & 1 deletion src/Control/Monad/Eff/Ref.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
module Control.Monad.Eff.Ref where

import Prelude (Unit, unit)
import Control.Monad.Eff (Eff())
import Control.Monad.Eff (Eff)

-- | The effect associated with the use of global mutable variables.
foreign import data REF :: !
Expand Down
6 changes: 3 additions & 3 deletions src/Control/Monad/Eff/Ref/Unsafe.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

module Control.Monad.Eff.Ref.Unsafe where

import Control.Monad.Eff (Eff())
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Ref (REF)
import Control.Monad.Eff.Unsafe (unsafeInterleaveEff)
import Control.Monad.Eff.Unsafe (unsafeCoerceEff)

-- | This handler function unsafely removes the `Ref` effect from an
-- | effectful action.
Expand All @@ -13,4 +13,4 @@ import Control.Monad.Eff.Unsafe (unsafeInterleaveEff)
-- | typechecker that a particular mutable reference does not escape
-- | its scope.
unsafeRunRef :: forall eff a. Eff (ref :: REF | eff) a -> Eff eff a
unsafeRunRef = unsafeInterleaveEff
unsafeRunRef = unsafeCoerceEff

0 comments on commit d6439d3

Please sign in to comment.