git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix foreachE
commit44a80b0f8254072439e90c12f9ac5826a6a02607 authorPhil Freeman <paf31@cantab.net> dateWed 9 Jul 2014, 15:08 (12 years ago) parent3b7ea16
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