On Sun, 22 Jan 2012 22:03:08 +0400
Denis Shelomovskij <verylonglogin....@gmail.com> wrote:

> I'm finishing a fast (I just don't see a faster way) and garbage-free 
> CTFE-capable wrapper. But it requires IDL to be written for every C 
> function.

I'm curious if you have read the following paper:

http://www.cse.unsw.edu.au/~chak/papers/Cha99b.html

describing C2Hs tool used to provide bindings for C libraries for
Haskell?

From the abstract: "The tool obtains information about the C data type
definitions and function signatures by analysing the C header files of
the library. It uses this information to compute the missing details in
the template of a Haskell module that implements a Haskell binding to
the C library. Hooks embedded in the binding file signal where, which,
and how C objects are accessed from Haskell. The Haskell code in the
binding file determines Haskell type signatures and marshaling details.
The approach is lightweight and does not require an extra interface
description language."



Sincerely,
Gour

-- 
The senses, the mind and the intelligence are the sitting places 
of this lust. Through them lust covers the real knowledge of the 
living entity and bewilders him.

Attachment: signature.asc
Description: PGP signature

Reply via email to