git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix random function in Prelude
3a2b3f4Phil Freeman
libraries/prelude/prelude.purs+1−3
@@ -790,9 +790,7 @@ module Random where
790 foreign import data Random :: !
790 foreign import data Random :: !
791
791
792 foreign import random "function random() {\
792 foreign import random "function random() {\
793− \ return function() {\
794− \ return Math.random();\
793+ \ return Math.random();\
795− \ };\
796 \}" :: forall e. Eff (random :: Random | e) Number
794 \}" :: forall e. Eff (random :: Random | e) Number
797
795
798module Errors where
796module Errors where