File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- module Data.Array.ST
1+ module Data.Array.ST
22 ( STArray (..)
33 , runSTArray
44 , emptySTArray
55 , peekSTArray
6- , pokeSTArray
7- , pushSTArray
6+ , pokeSTArray
7+ , pushSTArray
88 ) where
99
1010import Data.Maybe
@@ -24,7 +24,7 @@ foreign import emptySTArray """
2424 function emptySTArray() {
2525 return [];
2626 }" " " :: forall a h r . Eff (st :: ST h | r ) (STArray h a )
27-
27+
2828foreign import peekSTArrayImpl " " "
2929 function peekSTArrayImpl(arr, i, s, f) {
3030 return function() {
@@ -35,12 +35,12 @@ foreign import peekSTArrayImpl """
3535 return f;
3636 }
3737 };
38- }" " " :: forall a h e r . Fn4 (STArray h a )
39- Number
38+ }" " " :: forall a h e r . Fn4 (STArray h a )
39+ Number
4040 (a -> r )
4141 r
4242 (Eff (st :: ST h | e ) r )
43-
43+
4444peekSTArray :: forall a h r . STArray h a -> Number -> Eff (st :: ST h | r ) (Maybe a )
4545peekSTArray arr i = runFn4 peekSTArrayImpl arr i Just Nothing
4646
@@ -58,7 +58,7 @@ foreign import pokeSTArrayImpl """
5858 Number
5959 a
6060 (Eff (st :: ST h | e ) Boolean )
61-
61+
6262pokeSTArray :: forall a h r . STArray h a -> Number -> a -> Eff (st :: ST h | r ) Boolean
6363pokeSTArray arr i a = runFn3 pokeSTArrayImpl arr i a
6464
@@ -71,6 +71,6 @@ foreign import pushSTArrayImpl """
7171 }" " " :: forall a h e . Fn2 (STArray h a )
7272 a
7373 (Eff (st :: ST h | e ) Unit )
74-
74+
7575pushSTArray :: forall a h r . STArray h a -> a -> Eff (st :: ST h | r ) Unit
7676pushSTArray arr a = runFn2 pushSTArrayImpl arr a
You can’t perform that action at this time.
0 commit comments