Fix random function in Prelude
commit3a2b3f4d279daf414a5135912f5ee932553bc224
authorPhil Freeman <paf31@cantab.net>
dateWed 5 Feb 2014, 10:01 (13 years ago)
parent4cbe6e3
libraries/prelude/prelude.purs+1−3
@@ -790,9 +790,7 @@ module Random where
790790 foreign import data Random :: !
791791
792792 foreign import random "function random() {\
793− \ return function() {\
794− \ return Math.random();\
795− \ };\
793+ \ return Math.random();\
796794 \}" :: forall e. Eff (random :: Random | e) Number
797795
798796module Errors where