Skip to content

Commit 8006711

Browse files
committed
Merge pull request #5 from joneshf/master
Fix ffi example.
2 parents bf7ed0c + b820637 commit 8006711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ffi.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ foreign import data Random :: !
77
foreign import random """
88
function random() {
99
return Math.random();
10-
}""" :: Eff (random :: Random) Number
10+
}""" :: forall eff. Eff (random :: Random | eff) Number
1111

12-
main = Debug.Trace.print <$> random
12+
main = random >>= Debug.Trace.print
1313

0 commit comments

Comments
 (0)