aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/src
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2015-01-17 16:31:01 -0500
committereric <thul.eric@gmail.com>2015-01-17 16:31:01 -0500
commit84bdfea8eab66d3f797d1616db0e4fd63138fb6f (patch)
tree254850b971c699f0547b70b3c5e5137c29555e9f /example/src
parentebf06d39692b92058df757b2ec0009f0935d4563 (diff)
parent9f398b64af9025e146362a6cf7a2817255700337 (diff)
downloadpurs-loader-84bdfea8eab66d3f797d1616db0e4fd63138fb6f.tar.gz
purs-loader-84bdfea8eab66d3f797d1616db0e4fd63138fb6f.tar.zst
purs-loader-84bdfea8eab66d3f797d1616db0e4fd63138fb6f.zip
Merge pull request #6 from ethul/topic/bower-components
Topic/bower components
Diffstat (limited to 'example/src')
-rw-r--r--example/src/Foo.purs6
-rw-r--r--example/src/Foo/Bar.purs3
-rw-r--r--example/src/Foo/Baz.purs3
-rw-r--r--example/src/Test.purs2
-rw-r--r--example/src/entry.js8
5 files changed, 20 insertions, 2 deletions
diff --git a/example/src/Foo.purs b/example/src/Foo.purs
new file mode 100644
index 0000000..3e3a04c
--- /dev/null
+++ b/example/src/Foo.purs
@@ -0,0 +1,6 @@
1module Foo (foo) where
2
3import Data.Maybe
4import qualified Foo.Bar as B
5
6foo = "b"
diff --git a/example/src/Foo/Bar.purs b/example/src/Foo/Bar.purs
new file mode 100644
index 0000000..4ae100d
--- /dev/null
+++ b/example/src/Foo/Bar.purs
@@ -0,0 +1,3 @@
1module Foo.Bar (bar) where
2
3bar = "c"
diff --git a/example/src/Foo/Baz.purs b/example/src/Foo/Baz.purs
new file mode 100644
index 0000000..7b0451e
--- /dev/null
+++ b/example/src/Foo/Baz.purs
@@ -0,0 +1,3 @@
1module Foo.Baz (baz) where
2
3baz = "d"
diff --git a/example/src/Test.purs b/example/src/Test.purs
index 7409c6e..8a5cb88 100644
--- a/example/src/Test.purs
+++ b/example/src/Test.purs
@@ -1,3 +1,5 @@
1module Test (test) where 1module Test (test) where
2 2
3import Data.Maybe
4
3test = "a" 5test = "a"
diff --git a/example/src/entry.js b/example/src/entry.js
index 65119f6..160bee4 100644
--- a/example/src/entry.js
+++ b/example/src/entry.js
@@ -1,3 +1,7 @@
1var test = require('purs?no-prelude&output=output!./Test.purs'); 1var test = require('purs?output=output!./Test.purs');
2 2
3console.log(test); 3var foo = require('purs?output=output!./Foo.purs');
4
5var baz = require('purs?output=output!./Foo/Baz.purs');
6
7console.log(test, foo, baz);