diff options
Diffstat (limited to 'example/src')
-rw-r--r-- | example/src/Test.purs | 4 | ||||
-rw-r--r-- | example/src/TestFFI.js | 7 | ||||
-rw-r--r-- | example/src/entry.js | 8 |
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 @@ | |||
1 | module Test (test) where | 1 | module Test (test, testing) where |
2 | 2 | ||
3 | import Prelude | 3 | import Prelude |
4 | 4 | ||
5 | test = "a" | 5 | test = "a" |
6 | |||
7 | foreign 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 | |||
5 | var testing = 'abcde'; | ||
6 | |||
7 | exports.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 @@ | |||
1 | var Prelude = require('Prelude'); | 1 | var Prelude = require('Prelude'); |
2 | 2 | ||
3 | var test = require('./Test'); | 3 | var test = require('./Test.purs'); |
4 | 4 | ||
5 | var foo = require('./Foo'); | 5 | var foo = require('./Foo.purs'); |
6 | 6 | ||
7 | var baz = require('./Foo/Baz'); | 7 | var baz = require('./Foo/Baz.purs'); |
8 | 8 | ||
9 | var bar = require('./Foo/Bar'); | 9 | var bar = require('./Foo/Bar.purs'); |
10 | 10 | ||
11 | console.log(Prelude, test, foo, baz, bar); | 11 | console.log(Prelude, test, foo, baz, bar); |