Skip to content

Commit 6128d8b

Browse files
committed
cleanup warnings
Ignore-this: 2c02c206960fa647f94e83751794ad21 darcs-hash:20101203223030-56c21-6dc8e1ab1fab61f450a96802a373743309314a0e
1 parent 72db872 commit 6128d8b

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

Foreign/Matlab/Array/Auto.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module Foreign.Matlab.Array.Auto (
1313
import Foreign
1414
import Foreign.Matlab.Util
1515
import Foreign.Matlab.Internal
16-
import Foreign.Matlab.Types
1716

1817
-- |A 'MXArray' that is automatically freed with 'Foreign.Matlab.Array.freeMXArray'
1918
newtype MXAuto a = MXAuto (ForeignPtr MXArrayType)

Foreign/Matlab/Array/IMX.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ iMXData = imxd where
191191
imxd (IMXStruct f a) = do
192192
let ((r0,_),(r1,_)) = bounds a
193193
m <- createStruct (mRangeSize (r0,r1)) f
194-
zipWithM (\i -> mStructSetFields m (mOffset i) <=< mapM iMXData) [0..] (segment (length f) (elems a))
194+
zipWithM_ (\i -> mStructSetFields m (mOffset i) <=< mapM iMXData) [0..] (segment (length f) (elems a))
195195
return $ anyMXArray m
196196
imxd (IMXLogical a) = imxa a return
197197
imxd (IMXChar a) = imxa a return

Foreign/Matlab/Engine.hsc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import Foreign.C.Types
2222
import Data.List
2323
import Foreign.Matlab.Util
2424
import Foreign.Matlab.Internal
25-
import Foreign.Matlab.Types
2625
import Foreign.Matlab.Config
2726

2827
#include <engine.h>

Foreign/Matlab/MAT.hsc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import Foreign.C.String
2121
import Foreign.C.Error
2222
import Foreign.Matlab.Util
2323
import Foreign.Matlab.Internal
24-
import Foreign.Matlab.Types
2524

2625
#include <mat.h>
2726

Foreign/Matlab/Runtime.hsc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module Foreign.Matlab.Runtime (
1616
mlGenericFeval
1717
) where
1818

19-
import Control.Monad
2019
import Foreign
2120
import Foreign.C.String
2221
import Foreign.C.Types
@@ -28,7 +27,6 @@ import System.FilePath
2827
import Foreign.Matlab.Config
2928
import Foreign.Matlab.Util
3029
import Foreign.Matlab.Internal
31-
import Foreign.Matlab.Types
3230

3331
#include "hsc_sym.h"
3432
#include "libhsmatlab.h"

Foreign/Matlab/Runtime/Generic.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module Foreign.Matlab.Runtime.Generic (
1414
mlGenericCapture
1515
) where
1616

17-
import Control.Monad
1817
import Foreign.C.String
1918
--import System.FilePath
2019
import Foreign.Matlab.Util
@@ -61,7 +60,7 @@ mlGenericSetVar :: MLGeneric -> String -> MXArray a -> IO ()
6160
mlGenericSetVar mlg v x = do
6261
b <- createRowVector "base"
6362
v <- createRowVector v
64-
mlGenericFun mlg "assignin" [anyMXArray b,anyMXArray v,anyMXArray x] 0
63+
[] <- mlGenericFun mlg "assignin" [anyMXArray b,anyMXArray v,anyMXArray x] 0
6564
freeMXArray v
6665
freeMXArray b
6766

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
AC_INIT([Haskell Matlab interface], [0.1], [[email protected]])
22
AC_CONFIG_SRCDIR([matlab.cabal])
3+
AC_ARG_WITH(compiler,
4+
[AC_HELP_STRING([--with-compiler=PATH], [])],
5+
[],
6+
[])
37
AC_ARG_WITH(mcr,
48
[AC_HELP_STRING([--with-mcr=PATH], [use Matlab Component Runtime installed in PATH @<:@default=no@:>@])],
59
[],

matlab.buildinfo.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include-dirs: @srcdir@/src @MATLAB_DIR@/extern/include
22
extra-lib-dirs: @MATLAB_LIB_PATH@
3-
ld-options: "-Wl,-rpath,@MATLAB_LIB_DIR@" "-Wl,--disable-new-dtags"
3+
ld-options: "-Wl,-rpath,@MATLAB_LIB_DIR@:@MATLAB_DIR@/runtime/@MATLAB_ARCH@" "-Wl,--disable-new-dtags"

matlab.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Synopsis: Matlab bindings and interface
88
Description: 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 7.5-7.7 and might work with others.
99
Category: Foreign,Math
1010
build-type: Custom
11-
tested-with: GHC == 6.8.3
11+
tested-with: GHC == 6.12.3
1212
extra-source-files: configure matlab.buildinfo.in Foreign/Matlab/Config.hs.in
1313
src/Makefile.in src/hsmatlab.m src/hsmatlab.c src/hsc_sym.h
1414
test/Makefile.in test/engine.hs test/runtime.hs test/generic.hs test/mtest.m test/hsmli.hs
@@ -24,7 +24,7 @@ Flag MCR
2424
default: False
2525

2626
Library
27-
Build-depends: base < 4, unix, array, filepath, Cabal
27+
Build-depends: base, unix, array, filepath, Cabal
2828
Exposed-modules: Foreign.Matlab, Foreign.Matlab.Types, Foreign.Matlab.Array, Foreign.Matlab.Array.Auto, Foreign.Matlab.Array.MArray, Foreign.Matlab.Array.IMX, Foreign.Matlab.Array.Able, Foreign.Matlab.MAT
2929
if flag(engine)
3030
Exposed-modules: Foreign.Matlab.Engine

0 commit comments

Comments
 (0)