@hackage mathlink1.0.0.1

Call Haskell from Mathematica

  • Installation

  • Dependencies (4)

  • Dependents (1)

    @hackage/acme-everything
  • Package Flags

      32bit
       (off by default)

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

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.