diff options
-rw-r--r-- | example/src/Foo.purs | 6 | ||||
-rw-r--r-- | example/src/Foo/Bar.purs | 12 | ||||
-rw-r--r-- | example/src/Foo/Boz.purs | 5 | ||||
-rw-r--r-- | example/src/FooFFI.js | 5 |
4 files changed, 26 insertions, 2 deletions
diff --git a/example/src/Foo.purs b/example/src/Foo.purs index 97b7cec..a715be0 100644 --- a/example/src/Foo.purs +++ b/example/src/Foo.purs | |||
@@ -7,3 +7,9 @@ import qualified Foo.Bar as B | |||
7 | foo = "A" | 7 | foo = "A" |
8 | 8 | ||
9 | bar = "B" | 9 | bar = "B" |
10 | |||
11 | jaz = "D" ++ B.jar ++ B.jee | ||
12 | |||
13 | foreign import foot :: String | ||
14 | |||
15 | foreign import meter :: String | ||
diff --git a/example/src/Foo/Bar.purs b/example/src/Foo/Bar.purs index 6932902..1b0919c 100644 --- a/example/src/Foo/Bar.purs +++ b/example/src/Foo/Bar.purs | |||
@@ -1,5 +1,13 @@ | |||
1 | module Foo.Bar (bar) where | 1 | module Foo.Bar (bar, jar, jee) where |
2 | 2 | ||
3 | bar = "c" | 3 | import Foo.Boz |
4 | |||
5 | bar = "u" | ||
4 | 6 | ||
5 | bar' = "d" | 7 | bar' = "d" |
8 | |||
9 | jam = "c" | ||
10 | |||
11 | jar = "xyzw" | ||
12 | |||
13 | jee = "abcde" | ||
diff --git a/example/src/Foo/Boz.purs b/example/src/Foo/Boz.purs new file mode 100644 index 0000000..c802e47 --- /dev/null +++ b/example/src/Foo/Boz.purs | |||
@@ -0,0 +1,5 @@ | |||
1 | module Foo.Boz where | ||
2 | |||
3 | a = "a" | ||
4 | |||
5 | b = "b" | ||
diff --git a/example/src/FooFFI.js b/example/src/FooFFI.js new file mode 100644 index 0000000..a2681c8 --- /dev/null +++ b/example/src/FooFFI.js | |||
@@ -0,0 +1,5 @@ | |||
1 | // module Foo | ||
2 | |||
3 | exports.foot = "a"; | ||
4 | |||
5 | exports.meter = "b"; | ||