diff options
author | eric thul <thul.eric@gmail.com> | 2015-01-14 22:53:28 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-01-14 22:53:28 -0500 |
commit | 051c54bc5fd21db7758abfc8cbd53921bf50495e (patch) | |
tree | 9ad322e4cd48cbe929af3f0fe3aa10cc8c0debdd /example/src | |
parent | a6986505b0be81ddca5bd7d63bb98f2926ee47e8 (diff) | |
download | purs-loader-051c54bc5fd21db7758abfc8cbd53921bf50495e.tar.gz purs-loader-051c54bc5fd21db7758abfc8cbd53921bf50495e.tar.zst purs-loader-051c54bc5fd21db7758abfc8cbd53921bf50495e.zip |
updating example
Diffstat (limited to 'example/src')
-rw-r--r-- | example/src/Foo.purs | 5 | ||||
-rw-r--r-- | example/src/Test.purs | 2 | ||||
-rw-r--r-- | example/src/entry.js | 6 |
3 files changed, 11 insertions, 2 deletions
diff --git a/example/src/Foo.purs b/example/src/Foo.purs new file mode 100644 index 0000000..2d35d3f --- /dev/null +++ b/example/src/Foo.purs | |||
@@ -0,0 +1,5 @@ | |||
1 | module Foo (foo) where | ||
2 | |||
3 | import Data.Maybe | ||
4 | |||
5 | foo = "b" | ||
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 @@ | |||
1 | module Test (test) where | 1 | module Test (test) where |
2 | 2 | ||
3 | import Data.Maybe | ||
4 | |||
3 | test = "a" | 5 | test = "a" |
diff --git a/example/src/entry.js b/example/src/entry.js index 65119f6..4c15475 100644 --- a/example/src/entry.js +++ b/example/src/entry.js | |||
@@ -1,3 +1,5 @@ | |||
1 | var test = require('purs?no-prelude&output=output!./Test.purs'); | 1 | var test = require('purs?output=output!./Test.purs'); |
2 | 2 | ||
3 | console.log(test); | 3 | var foo = require('purs?output=output!./Foo.purs'); |
4 | |||
5 | console.log(test, foo); | ||