Exposing Haskell functions with String arguments in dll

Janna Khegai janna@cs.chalmers.se
Tue, 20 Feb 2001 11:31:11 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C09B30.A07791A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I want to expose the following Haskell function in dll to call it from =
Java application:=20
=20
trans: String -> IO String=20

I read that I shoud use tools like GreenCard, HDirect or some =
marshalling libraries, but not sure, which way is better.
If anyone has experience in this, I will be very grateful for an =
example, which shows the steps of bilding such dll.

Thanks in advance, Janna Khegai.

------=_NextPart_000_000F_01C09B30.A07791A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I&nbsp;want to&nbsp;expose the=20
following&nbsp;Haskell function in dll to call it from Java=20
application:&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>trans: String -&gt; IO =
String&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I read that I shoud use tools like =
GreenCard,=20
HDirect or some marshalling libraries, but not sure, which way is=20
better.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If anyone has&nbsp;experience in this, =
I will be=20
very grateful for an example, which shows the steps of bilding such=20
dll.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance, Janna=20
Khegai.</FONT></DIV></BODY></HTML>

------=_NextPart_000_000F_01C09B30.A07791A0--