Add Haskell language to compiler_vm

This commit is contained in:
Pragmatic Software 2015-04-09 11:04:18 -07:00
parent 88f6998b12
commit c8f35ddb09
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#!/usr/bin/env perl
use warnings;
use strict;
package haskell;
use parent '_default';
sub initialize {
my ($self, %conf) = @_;
$self->{sourcefile} = 'prog.hs';
$self->{execfile} = 'prog';
$self->{default_options} = '';
$self->{cmdline} = 'ghc -v0 $options -o $execfile $sourcefile';
$self->{cmdline_opening_comment} = "{-|\n=============== CMDLINE ===============\n";
$self->{cmdline_closing_comment} = "=============== CMDLINE ===============\n-}\n";
$self->{output_opening_comment} = "{-|\n=============== OUTPUT ===============\n";
$self->{output_closing_comment} = "=============== OUTPUT ===============\n-}\n";
}
1;

View File

@ -0,0 +1,9 @@
#!/usr/bin/perl
use warnings;
use strict;
package haskell;
use parent '_c_base';
1;