git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #621 from puffnfresh/patch-3
849de07Phil Freeman
docs/source/ffi.rst+5−5
@@ -14,11 +14,11 @@ Inline Javascript
14A foreign import declaration may optionally contain its definition in Javascript as a string literal. If this is provided, the string will be inserted directly into the generated Javascript before the current module definition::
14A foreign import declaration may optionally contain its definition in Javascript as a string literal. If this is provided, the string will be inserted directly into the generated Javascript before the current module definition::
15
15
16 foreign import pow
16 foreign import pow
17− "function pow(n) {\
17+ """function pow(n) {
18− \ return function(p) {\
18+ return function(p) {
19− \ return Math.pow(n, p);\
19+ return Math.pow(n, p);
20− \ };\
20+ };
21− \}" :: Number -> Number -> Number
21+ }""" :: Number -> Number -> Number
22
22
23Importing Types
23Importing Types
24---------------
24---------------