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

Commit 73c2289

Browse files
committed
Rename unsafeGet to unsafeFreeze
1 parent 9c0cc7f commit 73c2289

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Data/StrMap/ST/Unsafe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
exports.unsafeGet = function (m) {
3+
exports.unsafeFreeze = function (m) {
44
return function () {
55
return m;
66
};

src/Data/StrMap/ST/Unsafe.purs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
module Data.StrMap.ST.Unsafe
2-
( unsafeGet
3-
) where
1+
module Data.StrMap.ST.Unsafe where
42

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

0 commit comments

Comments
 (0)