RE: Haskell module for SWIG

2004-06-29 Thread ???
Hi, I'm not a Haskell expert, but you may find GreenCard useful (http://www.haskell.org/greencard/). And from my previous experience, you can write Haskell bindings to C using Haskell only, without any coding in C. You'd better read the FFI specifications (http://www.cse.unsw.edu.au/~chak/haskell

Haskell module for SWIG

2004-06-29 Thread Gour
Hi! I'd like to make Haskell bindings for some C library and I'm wondering if someone was/is thinking about writing Haskell support for SWIG or the present Haskell tools provide better route for such a task(s)? Sincerely, Gour -- Gour| [EMAIL PROTECTED] Registered Linux Use

Re: Socket Options

2004-06-29 Thread Sven Panne
Carsten Schultz wrote: Wouldn't that make getSocketOption :: Socket -> SocketOption -> IO Int a bit strange? How would you propose to change it? Possible, but also possibly overkill, would be: newtype Debug = Debug Bool newtype SendBuffer = SendBuffer (Maybe Int) [...] class SocketOption a where [