Re: [Haskell-cafe] Compiling a haskell project as a shared library and loading it in C/C++

2012-09-02 Thread A.M.
On 09/01/2012 12:13 AM, Farid Neshat wrote: So I'm trying to follow [this blog][1]. So I tried the code, couldn't compile the haskell part, probably due to the fact the guide uses version 6, but I have version 7 of ghc. By changing the paramaters I could compile it with the following: ghc

[Haskell-cafe] Compiling a haskell project as a shared library and loading it in C/C++

2012-08-31 Thread Farid Neshat
So I'm trying to follow [this blog][1]. So I tried the code, couldn't compile the haskell part, probably due to the fact the guide uses version 6, but I have version 7 of ghc. By changing the paramaters I could compile it with the following: ghc --make -dynamic -shared -fPIC -no-hs-main -optl