git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #471 from purescript/foreachE

Fix foreachE

commit3bc5937a80bd3f948d509d9d94e53b0d438f85df authorPhil Freeman <paf31@cantab.net> dateWed 9 Jul 2014, 15:29 (12 years ago) parent3b7ea1644a80b0
1 file changed+5−3
prelude/prelude.purs+5−3
prelude/prelude.purs+5−3
@@ -684,9 +684,11 @@ module Control.Monad.Eff where
684684
685685 foreign import foreachE "function foreachE(as) {\
686686 \ return function(f) {\
687− \ for (var i = 0; i < as.length; i++) {\
688− \ f(as[i])();\
689− \ }\
687+ \ return function() {\
688+ \ for (var i = 0; i < as.length; i++) {\
689+ \ f(as[i])();\
690+ \ }\
691+ \ };\
690692 \ };\
691693 \}" :: forall e a. [a] -> (a -> Eff e Unit) -> Eff e Unit
692694