FORTRAN and HASKELL

Sigbjorn Finne sof@galois.com
Fri, 30 Nov 2001 12:57:33 -0800


Hi,

you don't say what platform this is on (or what Fortran compiler
you're using). But, on Win32 platforms, many compilers use a
calling convention which is identical to the 'stdcall' calling convention,
so attributing your 'foreign import' declarations with "stdcall"
should get you there. At least that's the theory..

In general though, there's no built-in support in the FFI for
doing Fortran interop.

hth
--sigbjorn

----- Original Message ----- 
From: "heron_carvalho" <heron_carvalho@bol.com.br>
To: <cmiltonperl@yahoo.com>
Cc: <glasgow-haskell-users@haskell.org>
Sent: Friday, November 30, 2001 11:48
Subject: Re: FORTRAN and HASKELL


> Hello GHC users,
> 
> We want to reuse FORTRAN libraries within Haskell code. 
> How can we use FFI
> to implement this interface directly ? We know that we 
> can use C to
> implement it indirectly with FFI, but how can we do this 
> directly ? Any
> suggestion ?
> 
> Thanks,
> Heron de Carvalho
>