The dynamic-linker-template package
This package uses Template Haskell to generate dynamic linking FFI methods from a data by using its field names. A load function is generated to create an instance of the data from a library path.
Optional symbols are supported (use Maybe types in the data structure).
A String->String method can be provided to deal with symbols whose names are not exactly the same as field names.
See https://github.com/hsyl20/dynamic-linker-template/blob/master/Tests/Test.hs for an example.
Properties
| Versions | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3 |
|---|---|
| Dependencies | base (4.6.*), containers (0.5.*), template-haskell (2.8.*), unix (2.6.*) |
| License | BSD3 |
| Author | Sylvain HENRY |
| Maintainer | hsyl20@gmail.com |
| Category | System |
| Home page | http://github.com/hsyl20/dynamic-linker-template |
| Source repository | git clone git://github.com/hsyl20/dynamic-linker-template.git |
| Upload date | Thu Oct 11 00:06:56 UTC 2012 |
| Uploaded by | SylvainHenry |
| Built on | ghc-7.6 |
Modules
- System
- Posix
- DynamicLinker
- Posix
Downloads
- dynamic-linker-template-0.1.0.2.tar.gz (Cabal source package)
- package description (included in the package)