
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
--- clusterpoli
wrote: Somebody works with together FORTRAN and Haskell. Exists some funcao to transform codigo FORTRAN into codigo HASKELL?
TXL might help, but it's its own functional language. It can probably convert FORTRAN to Haskell given the EBNF for each language, but I'm not sure how it works...
http://www.research.avayalabs.com/user/wadler/realworld/l s2000.html
http://gatekeeper.dec.com/pub/misc/txl/
Otherwise, I would look at what algorithm the FORTRAN is implementing, the either write it in Haskell, or look for it on the Internet using http://www.google.com/
For example: http://www.cs.chalmers.se/pub/haskell/library/
http://www.cs.chalmers.se/pub/haskell/library/bevan/index
__________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting,
just $8.95/month.
http://geocities.yahoo.com/ps/info1
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow- haskell-users
__________________________________________________________________________ AcessoBOL, só R$ 9,90! O menor preço do mercado! Assine já! http://www.bol.com.br/acessobol

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"
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
participants (2)
-
heron_carvalho
-
Sigbjorn Finne