23 lines
486 B
JavaScript
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;
|