The greencard package

[ Tags: bsd3, foreign, library, program ] [ Propose Tags ]

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). This package is of largely historical interest only.

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.

This package supplies the executable, greencard, which needs GHC. For the Foreign.GreenCard library, you need to install this first and then you can install greencard-lib (greencard-lib requires the greencard binary already installed).

[Skip to Readme]


Versions 3.0.1,, 3.0.2, 3.0.3, 3.0.4,,
Dependencies array, base (==3.*), containers, pretty, process [details]
License BSD3
Author Alastair Reid, Sigbjorn Finne, and Thomas Nordin
Maintainer none
Category Development
Home page
Uploaded Sun Jan 18 03:00:17 UTC 2009 by GwernBranwen
Distributions NixOS:
Executables greencard
Downloads 2396 total (16 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-01-02 [all 6 reports]
Hackage Matrix CI


Maintainer's Corner

For package maintainers and hackage trustees

Readme for greencard-

[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