dynamic-linker-template: Automatically derive dynamic linking methods from a data type.
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.
Downloads
- dynamic-linker-template-0.1.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.1.0 |
---|---|
Dependencies | base (>=4.6 && <4.7), containers (>=0.5.0 && <0.5.1), template-haskell (>=2.8 && <2.9), unix (>=2.6 && <2.7) [details] |
License | BSD-3-Clause |
Author | Sylvain HENRY |
Maintainer | hsyl20@gmail.com |
Category | System |
Home page | http://github.com/hsyl20/dynamic-linker-template |
Source repo | head: git clone git://github.com/hsyl20/dynamic-linker-template.git |
Uploaded | by SylvainHenry at 2012-10-11T00:23:38Z |
Distributions | NixOS:0.1.1.0 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 4613 total (27 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |