compiler-discord/src/languages/haskell.js

24 lines
486 B
JavaScript
Raw Normal View History

2019-03-12 10:09:46 +01:00
const Language = require('../struct/Language');
class Haskell extends Language {
constructor() {
super('haskell', {
highlight: 'hs',
2019-03-13 06:51:49 +01:00
aliases: ['haskell', 'hs'],
options: {
e: () => ''
}
2019-03-12 10:09:46 +01:00
});
}
2019-03-13 06:51:49 +01:00
runWith(options) {
if (options.has('e')) {
return { id: this.id, env: { EVAL_EXPR: 'true' } };
}
return super.runWith(options);
}
2019-03-12 10:09:46 +01:00
}
module.exports = Haskell;