mathlink-0.1.0.0: mathlink.cabal
Name: mathlink
Version: 0.1.0.0
Cabal-Version: >= 1.2
Build-Type: Simple
License: BSD3
License-File: LICENSE
Copyright: Copyright (c) Tracy Wadleigh 2008, 2009
Author: Tracy Wadleigh
Maintainer: <tracy.wadleigh@gmail.com>
Bug-Reports: mailto:tracy.wadleigh@gmail.com?subject=dev-mathlink
Stability: experimental
Synopsis: A library for Mathematica's MathLink
Tested-With: GHC == 6.10.1
Category: Foreign
Extra-Source-Files: examples/mltest.cabal
examples/src/Main.hs
examples/Setup.lhs
examples/mltest.nb
examples/mltest.sh
Description: {
Provides a simple way to expose Haskell functions to /Mathematica/ via the
/MathLink/ interface. One defines a Haskell function of type @ML ()@ (a
'Monad' built on top of 'IO') and provides a pair of 'String's that
function analogously to the @:Pattern:@ and @:Arguments:@ directives for
/Mathematica/'s @mprep@ utility. Data can be marshaled either as an
'Expression' or, more generally, as an instance of the 'Expressible' class.
The library does not use or require @foreign export@ declarations, so may
be used interactively.
}
Flag 32Bit
Description: Build and link against the 32-bit version of the
MathLink library, instead of the 64-bt version.
Default: False
Library
Hs-Source-Dirs: src
Build-Depends: base >= 4.0 && < 4.1,
containers >= 0.2 && < 0.3,
mtl >= 1.1.0.2 && < 1.2,
array >= 0.2 && < 0.3
Exposed-Modules: Foreign.MathLink,
Foreign.MathLink.IO,
Foreign.MathLink.ML,
Foreign.MathLink.Types,
Foreign.MathLink.Expressible
if arch(i386) || flag(32bit)
Extra-Libraries: ML32i3
else
Extra-Libraries: ML64i3