We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf7ed0c + b820637 commit 8006711Copy full SHA for 8006711
examples/ffi.purs
@@ -7,7 +7,7 @@ foreign import data Random :: !
7
foreign import random """
8
function random() {
9
return Math.random();
10
- }""" :: Eff (random :: Random) Number
+ }""" :: forall eff. Eff (random :: Random | eff) Number
11
12
-main = Debug.Trace.print <$> random
+main = random >>= Debug.Trace.print
13
0 commit comments