aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--index.js3
2 files changed, 1 insertions, 4 deletions
diff --git a/README.md b/README.md
index 0663eec..630f82e 100644
--- a/README.md
+++ b/README.md
@@ -20,8 +20,6 @@ npm install purs-loader --save-dev
20 - Turn off optimizations which inline calls to >>= for the Eff monad. 20 - Turn off optimizations which inline calls to >>= for the Eff monad.
21 - **no-tco**: Boolean value that toggles `--no-tco` 21 - **no-tco**: Boolean value that toggles `--no-tco`
22 - Turn off tail-call elimination. 22 - Turn off tail-call elimination.
23 - **runtime-type-checks**: Boolean value that toggles `--runtime-type-checks`
24 - Generate simple runtime type checks for function arguments with simple types.
25 - **verbose-errors**: Boolean value that toggles `--verbose-errors` 23 - **verbose-errors**: Boolean value that toggles `--verbose-errors`
26 - Generate verbose error messages. 24 - Generate verbose error messages.
27 - **output**: String value that sets `--output=<string>` 25 - **output**: String value that sets `--output=<string>`
diff --git a/index.js b/index.js
index a7665f3..07988a2 100644
--- a/index.js
+++ b/index.js
@@ -13,7 +13,6 @@ var cp = require('child_process')
13 'no-opts': '--no-opts', 13 'no-opts': '--no-opts',
14 'no-magic-do': '--no-magic-do', 14 'no-magic-do': '--no-magic-do',
15 'no-tco': '--no-tco', 15 'no-tco': '--no-tco',
16 'runtime-type-checks': '--runtime-type-checks',
17 'verbose-errors': '--verbose-errors', 16 'verbose-errors': '--verbose-errors',
18 'output': '--output' 17 'output': '--output'
19 } 18 }
@@ -38,7 +37,7 @@ module.exports = function(source){
38 if (e) callback(e); 37 if (e) callback(e);
39 else { 38 else {
40 var module = path.basename(request, '.purs'); 39 var module = path.basename(request, '.purs');
41 fs.readFile(path.join(opts[OPTIONS[OUTPUT]] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ 40 fs.readFile(path.join(query[OUTPUT] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){
42 if (e) callback(e); 41 if (e) callback(e);
43 else callback(e, output); 42 else callback(e, output);
44 }); 43 });