Re: [Haskell-cafe] Bulding a library for C users on OS X

2009-11-02 Thread Chris Eidhof
On 2 nov 2009, at 03:30, Manuel M T Chakravarty wrote: Chris Eidhof: I'm trying to call a Haskell function from C, on OS X. There's an excellent post [1] by Tomáš Janoušek that explains how to do this on Linux. However, on OS X, it's different. First of all, it looks like the -no-hs-main

RE: [Haskell-cafe] Bulding a library for C users on OS X

2009-11-02 Thread Simon Peyton-Jones
There is some stuff on using the FFI under Collaborative documentation at http://haskell.org/haskellwiki/GHC. The FFI link takes you to http://haskell.org/haskellwiki/GHC/Using_the_FFI It's called collaborative because it's When you solve your problem, can I urge you to update that page (its

Re: [Haskell-cafe] Bulding a library for C users on OS X

2009-11-01 Thread Manuel M T Chakravarty
Chris Eidhof: I'm trying to call a Haskell function from C, on OS X. There's an excellent post [1] by Tomáš Janoušek that explains how to do this on Linux. However, on OS X, it's different. First of all, it looks like the -no-hs-main flag is ignored, because I get the following error:

[Haskell-cafe] Bulding a library for C users on OS X

2009-10-31 Thread Chris Eidhof
Hey all, I'm trying to call a Haskell function from C, on OS X. There's an excellent post [1] by Tomáš Janoušek that explains how to do this on Linux. However, on OS X, it's different. First of all, it looks like the -no-hs-main flag is ignored, because I get the following error: ghc