Version 0.5.7-0 of Hs2lib is deprecated.
The latest version of Hs2lib is 0.6.3-0.

Hs2lib

Version 0.5.7 revision 0 uploaded by TamarChristina.

Package meta

Synopsis
A Library and Preprocessor that makes it easier to create shared libs from Haskell programs.
Description

The supplied PreProcessor can be run over any existing source and would generate FFI code for every function marked to be exported by the special notation documented inside the package. It then proceeds to compile this generated code into a lib.

The Library contains some helper code that's commonly needed to convert between types, and contains the code for the typeclasses the PreProcessor uses in the generated code to keep things clean.

It will always generated the required C types for use when calling the dll, but it will also generate the C# unsafe code if requested.

Read http://blog.zhox.com/hs2lib.pdf (not published yet)

Current Restrictions:

  • Does NOT support x64 bit versions of GHC. This will be added in future versions if enough demand exist.

  • You cannot export functions which have the same name (even if they're in different modules because 1 big hsc file is generated at the moment, no conflict resolutions)

  • You cannot export datatypes with the same name, same restriction as above.

  • Does not support automatic instance generation for infix constructors yet

Author
Tamar Christina <tamar (at) zhox.com>
Bug reports
n/a
Category
Development
Copyright
n/a
Homepage
http://blog.zhox.com/category/hs2lib/
Maintainer
Tamar Christina <tamar (at) zhox.com>
Package URL
n/a
Stability
experimental

Components