matlab: Matlab bindings and interface

[ bsd3, foreign, library, math, program ] [ Propose Tags ]

This package aims to provide a comprehensive interface to the MathWorks MATLAB(R) libraries and native data structures, including complete matrix access, MAT-format files, linking and execution of runtime libraries and engine. Requires MATLAB for full functionality or an installed Matlab Component Runtime (MCR). This has been tested with MATLAB R2014a and might work with others.

You will probably need add some arguments that point Cabal to your MATLAB installation. For example, on a Linux system, it may look like this:
cabal install --extra-lib-dirs="/usr/local/MATLAB/R2014a/bin/glnxa64/" --extra-include-dirs="/usr/local/MATLAB/R2014a/extern/include/"


[Last Documentation]

  • Foreign
    • Foreign.Matlab
      • Foreign.Matlab.Array
        • Foreign.Matlab.Array.Able
        • Foreign.Matlab.Array.Auto
        • Foreign.Matlab.Array.IMX
        • Foreign.Matlab.Array.MArray
      • Foreign.Matlab.Engine
        • Foreign.Matlab.Engine.Wrappers
      • Foreign.Matlab.MAT
      • Foreign.Matlab.Runtime
        • Foreign.Matlab.Runtime.Generic
      • Foreign.Matlab.Types


Automatic Flags

Enable Matlab engine (spawned eng process) support


Enable Matlab runtime (linked library) support


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


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1,,
Dependencies array (>=0.5 && <0.6), base (>=4.0 && <4.16), Cabal (>=2.1 && <2.5), containers (>=0.6 && <0.7), exceptions (>=0.10 && <0.11), filepath (>=1.4 && <1.5), matlab, path (>=0.6 && <0.7), profunctors (>=5.3 && <5.4), template-haskell (>=2.14 && <2.15), text (>=1.2 && <1.3), unix (>=2.7 && <2.8) [details]
License BSD-3-Clause
Author Dylan Simon, Ben Sherman, Brandon Barker
Maintainer Brandon Barker <>
Category Foreign, Math
Bug tracker
Source repo head: git clone git://
this: git clone git://
Uploaded by bebarker at 2020-07-28T19:49:52Z
Reverse Dependencies 1 direct, 0 indirect [details]
Executables haskell-hello, matlab-engine-test
Downloads 1961 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-05-30 [all 2 reports]