Skip to content

Commit 9010d98

Browse files
paf31garyb
authored andcommitted
Fix random function in Prelude
1 parent 6019f26 commit 9010d98

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/prelude/prelude.purs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

798796
module Errors where

0 commit comments

Comments
 (0)