Re: [Haskell-cafe] FFI question - FunPtrs to top-level functions

2011-08-18 Thread kyra
On 8/18/2011 6:49 AM, Antoine Latter wrote: Hi Haskell, I have a question about the Haskell FFI and creating FunPtrs to Haskell functions. Does anyone have any recommendations for when I have a top-level function that I would like to pass to a C function as a function pointer (that is called vi

[Haskell-cafe] FFI question - FunPtrs to top-level functions

2011-08-17 Thread Antoine Latter
Hi Haskell, I have a question about the Haskell FFI and creating FunPtrs to Haskell functions. Does anyone have any recommendations for when I have a top-level function that I would like to pass to a C function as a function pointer (that is called via a foreign import)? I know that the FFI prov

[Haskell-cafe] FFI question

2009-06-19 Thread Vasili I. Galchin
Hello, I would like to write bindings from Haskell to Java. Is this possible? If so, where are examples? Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ffi question

2006-09-13 Thread Maverick
Hi, I have a question about ffi in Hugs98 (WinHugs-May2006.exe), the Hugs98 documentation says:"Only the ccall, stdcall and dotnet calling conventions are supported. All others are flagged as errors."But I can't get a dotnet import, the ffihugs returns me an error:ffihugs "example.hs"

Re[2]: [Haskell-cafe] FFI question

2006-02-09 Thread Bulat Ziganshin
Hello Duncan, Thursday, February 09, 2006, 8:45:01 PM, you wrote: DC> There is also c2hs which is well supported and is used for several large DC> C bindings: there is also hsffig by Dmitry Golubovsky. we need to establish FFI page on the wiki and give at least links to all this packages and sma

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Duncan Coutts
On Thu, 2006-02-09 at 09:27 -0800, Donn Cave wrote: > On Thu, 9 Feb 2006, Christopher Brown wrote: > > Frederico, > > > > Have you tried using Green Card? > > > > http://haskell.org/greencard/ > > > > It is basically a foreign function pre-processor for Haskell. It > > allows your Haskell prog

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Donn Cave
On Thu, 9 Feb 2006, Christopher Brown wrote: > Frederico, > > Have you tried using Green Card? > > http://haskell.org/greencard/ > > It is basically a foreign function pre-processor for Haskell. It > allows your Haskell programs to interface with C libraries in a very > straight forward way.

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Esa Ilari Vuokko
On 2/9/06, Frederico Franzosi <[EMAIL PROTECTED]> wrote: Hi, I don't really know how this stuff exactly works, but here's few things I have found useful when I ran into this sort of problems. > I'm developping a package wich imports C functions. > For example if I use: > $ghc -package PKGname-P

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Bulat Ziganshin
Hello Frederico, Thursday, February 09, 2006, 5:08:12 AM, you wrote: FF> I'm developping a package wich imports C functions. it depends on the details of your use. things go far away from the times where FFI addendum was published, but there is no good docementation, afaik. first, there are a nu

Re: [Haskell-cafe] FFI question

2006-02-09 Thread Christopher Brown
Frederico, Have you tried using Green Card? http://haskell.org/greencard/ It is basically a foreign function pre-processor for Haskell. It allows your Haskell programs to interface with C libraries in a very straight forward way. Chris. On 9 Feb 2006, at 02:08, Frederico Franzosi wrote

[Haskell-cafe] FFI question

2006-02-08 Thread Frederico Franzosi
I'll try to make it short. I'm developping a package wich imports C functions. the fact is that when I try to compile if I call the compiler in the usual way, using -package and -llib it gives an undefined reference error... For example if I use: $ghc -package PKGname-PKGversion -fffi -o main Ma