c2hs | 5 Mar 2011 18:39
Favicon

[c2hs] #37: Export C2HS.hs module from library part of the c2hs package

#37: Export C2HS.hs module from library part of the c2hs package
--------------------+-------------------------------------------------------
 Reporter:  guest   |        Type:  enhancement
   Status:  new     |    Priority:  normal     
Milestone:          |   Component:  general    
  Version:  0.16.0  |    Keywords:             
--------------------+-------------------------------------------------------
 I see some packages (portaudio, alsa) at Hackage, that contain a plain
 copy of the C2HS module. Wouldn't it be better to add a library part to
 the c2hs package and export the C2HS module?

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/37>
c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/>
C->Haskell, An Interface Generator for Haskell

Duncan Coutts | 24 Mar 2011 14:07

ANNOUNCE: c2hs 0.16.3

All,

c2hs version 0.16.3 is out and is available from hackage
http://hackage.haskell.org/package/c2hs

What is c2hs
============

c2hs is an FFI preprocessor tool, a bit like hsc2hs, that helps with the
development of Haskell bindings to C libraries.

The major advantages of using c2hs compared to writing foreign imports
by hand (or using hsc2hs) are:

  * Cross-language type safety:
        C functions are imported with the correct Haskell types.

  * Saves time:
        boilerplate marshaling code is generated.

It works by extracting interface information from C header files and it
generates Haskell code with foreign imports and marshalling.

Changes in this release
=======================

      * In and out marshallers may now have arguments, rather than just
        being single function names.
      * Foreign function imports will now use stdcall if the C headers
        specify this calling convention. This will help with bindings to
(Continue reading)


Gmane