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

Commit 83f7485

Browse files
committed
Merge pull request #20 from dylex/copyEff
Fix _copyEff not to directly reference _copy
2 parents 57fdded + 658ea6e commit 83f7485

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Data/StrMap.purs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ foreign import _copyEff
6666
"""
6767
function _copyEff(m) {
6868
return function() {
69-
return _copy(m);
69+
var r = {};
70+
for (var k in m) {
71+
r[k] = m[k];
72+
}
73+
return r;
7074
};
7175
}
7276
""" :: forall a b h r. a -> Eff (st :: ST.ST h | r) b

0 commit comments

Comments
 (0)