diff options
Diffstat (limited to 'example/src')
-rw-r--r-- | example/src/Bar.purs | 3 | ||||
-rw-r--r-- | example/src/Foo.purs | 6 | ||||
-rw-r--r-- | example/src/Test.purs | 6 | ||||
-rw-r--r-- | example/src/entry.js | 10 | ||||
-rw-r--r-- | example/src/jam.js | 5 |
5 files changed, 20 insertions, 10 deletions
diff --git a/example/src/Bar.purs b/example/src/Bar.purs new file mode 100644 index 0000000..a37171f --- /dev/null +++ b/example/src/Bar.purs | |||
@@ -0,0 +1,3 @@ | |||
1 | module Bar where | ||
2 | |||
3 | test = "b" | ||
diff --git a/example/src/Foo.purs b/example/src/Foo.purs index b234e0d..97b7cec 100644 --- a/example/src/Foo.purs +++ b/example/src/Foo.purs | |||
@@ -1,9 +1,9 @@ | |||
1 | module Foo (foo) where | 1 | module Foo where |
2 | 2 | ||
3 | import Prelude | 3 | import Prelude |
4 | 4 | ||
5 | import qualified Foo.Bar as B | 5 | import qualified Foo.Bar as B |
6 | 6 | ||
7 | foo = "b" | 7 | foo = "A" |
8 | 8 | ||
9 | foo' = "c" | 9 | bar = "B" |
diff --git a/example/src/Test.purs b/example/src/Test.purs index 133a192..3a92681 100644 --- a/example/src/Test.purs +++ b/example/src/Test.purs | |||
@@ -1,7 +1,7 @@ | |||
1 | module Test (test, testing) where | 1 | module Test (testing) where |
2 | 2 | ||
3 | import Prelude | 3 | bar = "c" |
4 | 4 | ||
5 | test = "a" | 5 | goo = "a" |
6 | 6 | ||
7 | foreign import testing :: String | 7 | foreign import testing :: String |
diff --git a/example/src/entry.js b/example/src/entry.js index cde8507..a1e2a99 100644 --- a/example/src/entry.js +++ b/example/src/entry.js | |||
@@ -1,9 +1,11 @@ | |||
1 | var Prelude = require('Prelude'); | 1 | var Prelude = require('purescript-prelude/src/Prelude'); |
2 | 2 | ||
3 | var test = require('./Test.purs'); | 3 | var test = require('./Test'); |
4 | 4 | ||
5 | var foo = require('./Foo.purs'); | 5 | var foo = require('./Foo.purs'); |
6 | 6 | ||
7 | var baz = require('./Foo/Baz.purs'); | 7 | var baz = require('./Foo/Baz'); |
8 | 8 | ||
9 | console.log(Prelude, test, foo, baz); | 9 | var jam = require('./jam'); |
10 | |||
11 | console.log(Prelude, test, foo, baz, jam); | ||
diff --git a/example/src/jam.js b/example/src/jam.js new file mode 100644 index 0000000..8889a69 --- /dev/null +++ b/example/src/jam.js | |||
@@ -0,0 +1,5 @@ | |||
1 | var x = 'a'; | ||
2 | |||
3 | var abcde = require('./Bar'); | ||
4 | |||
5 | module.exports = abcde; | ||