aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/src
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2016-02-25 21:48:42 -0500
committereric <thul.eric@gmail.com>2016-02-25 21:48:42 -0500
commitd7d4ec32989320d0fb62413d59b137279824de5b (patch)
tree2ab19c4a3f01925f1ee5c29f99c4f6cd6e5c1166 /example/src
parentef1525b5a0fe3f4561493aaca49907dba827dbd6 (diff)
parentf97818b550b17455448ff7fe09689b326c30912b (diff)
downloadpurs-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.purs6
-rw-r--r--example/src/Foo/Bar.purs12
-rw-r--r--example/src/Foo/Boz.purs5
-rw-r--r--example/src/FooFFI.js5
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
7foo = "A" 7foo = "A"
8 8
9bar = "B" 9bar = "B"
10
11jaz = "D" ++ B.jar ++ B.jee
12
13foreign import foot :: String
14
15foreign 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 @@
1module Foo.Bar (bar) where 1module Foo.Bar (bar, jar, jee) where
2 2
3bar = "c" 3import Foo.Boz
4
5bar = "u"
4 6
5bar' = "d" 7bar' = "d"
8
9jam = "c"
10
11jar = "xyzw"
12
13jee = "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 @@
1module Foo.Boz where
2
3a = "a"
4
5b = "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
3exports.foot = "a";
4
5exports.meter = "b";