packages feed

mathlink-1.1.0.0: mathlink.cabal

Name:                 mathlink
Version:              1.1.0.0
Cabal-Version:        >= 1.6
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
Homepage:             http://community.haskell.org/~TracyWadleigh/mathlink

Stability:            experimental
Synopsis:             Call Haskell from Mathematica
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 @IO ()@ and provides a pair of 
'String's 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.
}

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.Expressible
  C-Sources:          src/state.c
  if arch(i386) || flag(32bit)
    Extra-Libraries:  ML32i3
  else
    Extra-Libraries:  ML64i3
  
Source-Repository     head
  Type:               darcs
  Location:           http://community.haskell.org/~TracyWadleigh/darcs/mathlink/