Skip to content

Commit 8051245

Browse files
committed
Fix FFI example
1 parent 3a59325 commit 8051245

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/ffi.purs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ foreign import data Random :: !
66

77
foreign import random
88
"function random() { \
9-
\ return function() { \
10-
\ return Math.random(); \
11-
\ }; \
9+
\ return Math.random(); \
1210
\}" :: Eff (random :: Random) Number
1311

1412
main = Debug.Trace.print <$> random

0 commit comments

Comments
 (0)