aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/src
diff options
context:
space:
mode:
Diffstat (limited to 'example/src')
-rw-r--r--example/src/Test.purs4
-rw-r--r--example/src/TestFFI.js7
-rw-r--r--example/src/entry.js8
3 files changed, 14 insertions, 5 deletions
diff --git a/example/src/Test.purs b/example/src/Test.purs
index d9f1b96..133a192 100644
--- a/example/src/Test.purs
+++ b/example/src/Test.purs
@@ -1,5 +1,7 @@
1module Test (test) where 1module Test (test, testing) where
2 2
3import Prelude 3import Prelude
4 4
5test = "a" 5test = "a"
6
7foreign import testing :: String
diff --git a/example/src/TestFFI.js b/example/src/TestFFI.js
new file mode 100644
index 0000000..dc2f04f
--- /dev/null
+++ b/example/src/TestFFI.js
@@ -0,0 +1,7 @@
1'use strict';
2
3// module Test
4
5var testing = 'abcde';
6
7exports.testing = testing;
diff --git a/example/src/entry.js b/example/src/entry.js
index 344d4c6..a41536c 100644
--- a/example/src/entry.js
+++ b/example/src/entry.js
@@ -1,11 +1,11 @@
1var Prelude = require('Prelude'); 1var Prelude = require('Prelude');
2 2
3var test = require('./Test'); 3var test = require('./Test.purs');
4 4
5var foo = require('./Foo'); 5var foo = require('./Foo.purs');
6 6
7var baz = require('./Foo/Baz'); 7var baz = require('./Foo/Baz.purs');
8 8
9var bar = require('./Foo/Bar'); 9var bar = require('./Foo/Bar.purs');
10 10
11console.log(Prelude, test, foo, baz, bar); 11console.log(Prelude, test, foo, baz, bar);