diff options
author | Simon Brand <tartanllama@gmail.com> | 2017-06-08 19:52:50 +0100 |
---|---|---|
committer | Simon Brand <tartanllama@gmail.com> | 2017-06-08 19:52:50 +0100 |
commit | 8dbd5dc1395988cdecf02a7e9ce0a63c632dfa26 (patch) | |
tree | bd6690af42d34e73963a4e5ac0f2622536ac3ae2 /lib/compilers/haskell.js | |
parent | 4bb468ca81e9810a8ac9529d7a004820ef1b3394 (diff) | |
download | compiler-explorer-8dbd5dc1395988cdecf02a7e9ce0a63c632dfa26.tar.gz compiler-explorer-8dbd5dc1395988cdecf02a7e9ce0a63c632dfa26.zip |
Add Haskell support
Diffstat (limited to 'lib/compilers/haskell.js')
-rw-r--r-- | lib/compilers/haskell.js | 11 |
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; |