Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Rename unsafeGet to unsafeFreeze
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Mar 27, 2017
1 parent 9c0cc7f commit 73c2289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Data/StrMap/ST/Unsafe.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

exports.unsafeGet = function (m) {
exports.unsafeFreeze = function (m) {
return function () {
return m;
};
Expand Down
6 changes: 2 additions & 4 deletions src/Data/StrMap/ST/Unsafe.purs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
module Data.StrMap.ST.Unsafe
( unsafeGet
) where
module Data.StrMap.ST.Unsafe where

import Control.Monad.Eff (Eff)
import Control.Monad.ST (ST)
Expand All @@ -10,4 +8,4 @@ import Data.StrMap.ST (STStrMap)
-- | Unsafely get the map out of ST without copying it
-- |
-- | If you later change the ST version of the map the pure value will also change.
foreign import unsafeGet :: forall a h r. STStrMap h a -> Eff (st :: ST h | r) (StrMap a)
foreign import unsafeFreeze :: forall a h r. STStrMap h a -> Eff (st :: ST h | r) (StrMap a)

0 comments on commit 73c2289

Please sign in to comment.