Sigbjorn Finne
Fri, 30 Nov 2001 12:57:33 -0800


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.


----- Original Message ----- 
From: "heron_carvalho" <>
To: <>
Cc: <>
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