aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/src
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2015-07-18 17:11:00 -0400
committereric <thul.eric@gmail.com>2015-07-18 17:11:00 -0400
commit78da2ff4a8ba259403efc166d3f753068221914e (patch)
treea4858f5e16e3df01aee249ad53b5b76f90fb97de /example/src
parent418c9429609c6d80ddaf7df41e0ee64192e2ec7b (diff)
parent3610dff1b8308a810d827f0595832b326deff37b (diff)
downloadpurs-loader-78da2ff4a8ba259403efc166d3f753068221914e.tar.gz
purs-loader-78da2ff4a8ba259403efc166d3f753068221914e.tar.zst
purs-loader-78da2ff4a8ba259403efc166d3f753068221914e.zip
Merge pull request #20 from ethul/topic/issue-18
Add FFI JavaScript as a webpack dependency
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);