greencard: GreenCard, a foreign function pre-processor for Haskell.

[ bsd3, foreign, library, program ] [ Propose Tags ] [ Report a vulnerability ]

Green Card is a foreign function interface preprocessor for Haskell, simplifying the task of interfacing Haskell programs to external libraries (which are normally exposed via C interfaces).

To interface to an external function using Green Card, you write a small procedure specification. The specification tells Green Card what (Haskell) type you want to give the function together with details of how the arguments (and results) to the Haskell function should be marshalled to and from the data representation used by the external function. Green Card will then generate gobs of low-level boilerplate code that takes care of all the details.

For an example of a simple GreenCard module, have a look at examples/world/World.gc

Along with the greencard application binary, this package also supplies the greencard library/package, consisting of the single module Foreign.GreenCard containing the default GreenCard marshalling functions.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 3.0.1, 3.0.1.1, 3.0.2, 3.0.3, 3.0.4, 3.0.4.1, 3.0.4.2
Dependencies array, base (>=4.7 && <=5), containers, pretty [details]
License BSD-3-Clause
Author Alastair Reid <alastair@reid-consulting-uk.ltd.uk>, Sigbjorn Finne <sof@forkIO.com>, Thomas Nordin.
Maintainer Sigbjorn Finne <sof@forkIO.com>
Category Foreign
Home page https://github.com/sof/greencard
Uploaded by SigbjornFinne at 2014-05-03T19:00:46Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Executables greencard
Downloads 7274 total (19 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]

Readme for greencard-3.0.4.2

[back to package description]
This is the top-level directory for Green Card, a foreign function
interface pre-processor for Haskell.

For details of how to compile this distribution, please consult the
INSTALL file.