| Language-Haskell documentation | Contained in the Language-Haskell distribution. |
Language::Haskell::API - Haskell interpreter API
This module represents a haskell interpreter.
See http://www.cs.sfu.ca/CC/SW/Haskell/hugs/server.html for a description of the Hugs API. That document is also available as hugs98-Nov2003/docs/server.html in this module's source distribution.
Autrijus Tang <autrijus@autrijus.org>
Copyright 2004 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Language-Haskell documentation | Contained in the Language-Haskell distribution. |
package Language::Haskell::API; push @_p__HugsServerAPI::ISA, __PACKAGE__; use strict;
# XXX - This is totally a makeshift operation. Should use the # overloaded "show" primitive for this. sub eval { my $self = shift; my $hval = $self->compileExpr( Prelude => "(show) ($_[0])" ); $self->pushHVal($hval); return $self->evalString; } 1; __END__