Skip to content
Support for calling Python from Haskell
Haskell C Python
#3 Compare This branch is 17 commits ahead of jgoerzen:master.
Latest commit b23de39 @softmechanics Merge pull request #2 from ghorn/master
updated to build with ghc 7.4.1


What is MissingPy?

It's two things:

1. A Haskell binding for many C and Python libraries for tasks such as
   data compression, databases, etc.  This can be found in the
   MissingPy module tree.

2. A low-level Haskell binding to the Python interpreter to
   enable development of hybrid applications that use both
   environments.  This can be found in the Python module tree.  The
   Haskell bindings above use this environment.

MissingPy permits you to call Python code from Haskell.  It does NOT
permit you to call Haskell code from Python.

Major Features

 * GZip and BZip2 compression and decompression using the generic
   Handle-like HVIO interface

 * *dbm persistent storage using the generic AnyDBM interface

 * Low-level interface to Python for extending your own Haskell code

 * Many unit tests to verify proper functionality


Quick Start

See the file INSTALL.

Usage in programs

You can simply use -package MissingPy in ghc to enable
this library.  

Note that you'll want to compile most of your programs with
-fallow-overlapping-instances at least.  (If you use *only*
MissingPy/*, that may not be necessary.)  Also, please note that you
must call Python.Interpreter.py_initialize before doing anything else.

The API docs can be built with "make doc", or you can find them at:

Author & Homepage

MissingPy was written by John Goerzen <>.

The latest version may be obtained at:

Documentation is also available on that page.

This program is copyrighted under the terms of the GNU General Public License.
See the COPYRIGHT and COPYING files for more details.

If the GPL is unacceptable for your uses, please e-mail me; alternative
terms can be negotiated for your project.

Something went wrong with that request. Please try again.