compiler-discord/src/languages/haskell.js
2019-03-13 01:51:49 -04:00

23 lines
486 B
JavaScript

const Language = require('../struct/Language');
class Haskell extends Language {
constructor() {
super('haskell', {
highlight: 'hs',
aliases: ['haskell', 'hs'],
options: {
e: () => ''
}
});
}
runWith(options) {
if (options.has('e')) {
return { id: this.id, env: { EVAL_EXPR: 'true' } };
}
return super.runWith(options);
}
}
module.exports = Haskell;