diff options
author | eric <thul.eric@gmail.com> | 2016-02-25 21:48:42 -0500 |
---|---|---|
committer | eric <thul.eric@gmail.com> | 2016-02-25 21:48:42 -0500 |
commit | d7d4ec32989320d0fb62413d59b137279824de5b (patch) | |
tree | 2ab19c4a3f01925f1ee5c29f99c4f6cd6e5c1166 /example/src | |
parent | ef1525b5a0fe3f4561493aaca49907dba827dbd6 (diff) | |
parent | f97818b550b17455448ff7fe09689b326c30912b (diff) | |
download | purs-loader-d7d4ec32989320d0fb62413d59b137279824de5b.tar.gz purs-loader-d7d4ec32989320d0fb62413d59b137279824de5b.tar.zst purs-loader-d7d4ec32989320d0fb62413d59b137279824de5b.zip |
Merge pull request #38 from ethul/topic/dependency-graph
Topic/dependency graph
Diffstat (limited to 'example/src')
-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"; | ||