From 1fa7e1e6e5a953d6cce85bb8a822ab857f68b58d Mon Sep 17 00:00:00 2001 From: eric thul Date: Thu, 20 Nov 2014 16:22:27 -0500 Subject: Removing --runtime-type-checks Resolves issue #1 --- README.md | 2 -- index.js | 1 - 2 files changed, 3 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 - Turn off optimizations which inline calls to >>= for the Eff monad. - **no-tco**: Boolean value that toggles `--no-tco` - Turn off tail-call elimination. - - **runtime-type-checks**: Boolean value that toggles `--runtime-type-checks` - - Generate simple runtime type checks for function arguments with simple types. - **verbose-errors**: Boolean value that toggles `--verbose-errors` - Generate verbose error messages. - **output**: String value that sets `--output=` diff --git a/index.js b/index.js index a7665f3..5355f2f 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,6 @@ var cp = require('child_process') 'no-opts': '--no-opts', 'no-magic-do': '--no-magic-do', 'no-tco': '--no-tco', - 'runtime-type-checks': '--runtime-type-checks', 'verbose-errors': '--verbose-errors', 'output': '--output' } -- cgit v1.2.3 From 63ecec203a89b3084b3f3518063998e23a29a83b Mon Sep 17 00:00:00 2001 From: eric thul Date: Thu, 20 Nov 2014 16:23:38 -0500 Subject: Obtaining output directory Resolves issues #2 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5355f2f..07988a2 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,7 @@ module.exports = function(source){ if (e) callback(e); else { var module = path.basename(request, '.purs'); - fs.readFile(path.join(opts[OPTIONS[OUTPUT]] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ + fs.readFile(path.join(query[OUTPUT] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ if (e) callback(e); else callback(e, output); }); -- cgit v1.2.3