FFI imports packaging utility

From HaskellWiki
Revision as of 04:01, 28 January 2006 by DimitryGolubovsky (talk | contribs)
Jump to navigation Jump to search

Note: This page contains a progressing draft of the documentation for an extension to HSFFIG to create Haskell packages for FFI imports. Once this page is complete this note will be removed. Dimitry Golubovsky

The FFI Packaging Utility

Abstract

This document contains user manual for the FFI Packaging Utility (ffipkg) which is an extension to HSFFIG.

Why Package FFI Imports

Typically, when building a Haskell applications calling foreign functions from some library directly, the following things are taken into consideration:

  • location of the library header files and the library itself
  • specific options given to

Command Line Options

How It Works

Preprocessing Header Files

Generating FFI Imports

Splitting Haskell Sources

Building Package Libraries

Integration with Cabal

Working Examples

Hello World

Berkeley DB

X11 Transport Protocol

Conclusion