Re: How to bind a window library (in C) to Haskell?

2006-02-26 Thread Esa Ilari Vuokko
On 2/27/06, Brian Hulley <[EMAIL PROTECTED]> wrote: Hi [snip] > 1) Does this mean that the FFI can only pass Int, Char etc and not user > defined data types or compound data types? Yes. The idea is that instead of pointers/references you have Ptr a, and instance Storable a that provides marshall

How to bind a window library (in C) to Haskell?

2006-02-26 Thread Brian Hulley
Hi - I'd like to be able to use Haskell for the project I'm working on but the problem is that I've already written a lot of code for a nice GUI using DirectX in Visual C++. I thought it might be possible to make up some kind of simple API for it which I could call from Haskell, so I started