aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/haskell.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/haskell.js')
-rw-r--r--lib/compilers/haskell.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/compilers/haskell.js b/lib/compilers/haskell.js
new file mode 100644
index 000000000..02013de9f
--- /dev/null
+++ b/lib/compilers/haskell.js
@@ -0,0 +1,11 @@
+var Compile = require('../base-compiler');
+
+function compileHaskell(info, env) {
+ var compiler = new Compile(info, env);
+ compiler.optionsForFilter = function (filters, outputFilename) {
+ return ['-S', '-g', '-o', this.filename(outputFilename)];
+ };
+ return compiler.initialise();
+}
+
+module.exports = compileHaskell;