diff options
author | eric thul <thul.eric@gmail.com> | 2015-01-17 16:24:33 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-01-17 16:24:33 -0500 |
commit | a92aa714f0a5436d9f06f82b3cad4df8129e4064 (patch) | |
tree | ad7bb533a80a2a012d18317596bc5825ad1c2db8 /example/src/Foo | |
parent | 051c54bc5fd21db7758abfc8cbd53921bf50495e (diff) | |
download | purs-loader-a92aa714f0a5436d9f06f82b3cad4df8129e4064.tar.gz purs-loader-a92aa714f0a5436d9f06f82b3cad4df8129e4064.tar.zst purs-loader-a92aa714f0a5436d9f06f82b3cad4df8129e4064.zip |
Parsing module name from source
Resolves issue #3 since the the module name defined in the PureScript
file is used to resolve the location of the CommonJS-generated output.
Diffstat (limited to 'example/src/Foo')
-rw-r--r-- | example/src/Foo/Bar.purs | 3 | ||||
-rw-r--r-- | example/src/Foo/Baz.purs | 3 |
2 files changed, 6 insertions, 0 deletions
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 @@ | |||
1 | module Foo.Bar (bar) where | ||
2 | |||
3 | bar = "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 @@ | |||
1 | module Foo.Baz (baz) where | ||
2 | |||
3 | baz = "d" | ||