diff --git a/modules/compiler_vm/languages/haskell.pm b/modules/compiler_vm/languages/haskell.pm new file mode 100755 index 00000000..1f031055 --- /dev/null +++ b/modules/compiler_vm/languages/haskell.pm @@ -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; diff --git a/modules/compiler_vm/languages/server/haskell.pm b/modules/compiler_vm/languages/server/haskell.pm new file mode 100755 index 00000000..9f655d42 --- /dev/null +++ b/modules/compiler_vm/languages/server/haskell.pm @@ -0,0 +1,9 @@ +#!/usr/bin/perl + +use warnings; +use strict; + +package haskell; +use parent '_c_base'; + +1;