The mathlink package

[Tags:bsd3, library]

Provides a simple way to expose Haskell functions to Mathematica via the MathLink interface.

One defines a Haskell function of type IO () and provides a pair of Strings that function analogously to the :Pattern: and :Arguments: directives for Mathematica's mprep utility.

Data whose types are instances of the Expressible class can be marshaled to/from Mathematica. The library already provides instances for many data types, including tuples, lists, and unboxed arrays.

The library does not use or require foreign export declarations, so may be used interactively.


Dependencies array (==0.2.*), base (==4.0.*), containers (==0.2.*), mtl (>= && <1.2) [details]
License BSD3
Copyright Copyright (c) Tracy Wadleigh 2008, 2009
Author Tracy Wadleigh
Maintainer <>
Stability experimental
Category Foreign
Home page
Bug tracker
Source repository head: darcs get
Uploaded Sat Jan 31 04:07:10 UTC 2009 by TracyWadleigh
Distributions NixOS:
Downloads 2364 total (33 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2015-11-23 [all 4 reports]


  • Foreign
    • Foreign.MathLink
      • Foreign.MathLink.Expressible
      • Foreign.MathLink.IO


32bitBuild and link against the 32-bit version of the MathLink library, instead of the 64-bt version.DisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees