summaryrefslogtreecommitdiff
path: root/packages/glpk
diff options
context:
space:
mode:
Diffstat (limited to 'packages/glpk')
-rw-r--r--packages/glpk/hmatrix-glpk.cabal10
-rw-r--r--packages/glpk/lib/Numeric/LinearProgramming.hs5
2 files changed, 10 insertions, 5 deletions
diff --git a/packages/glpk/hmatrix-glpk.cabal b/packages/glpk/hmatrix-glpk.cabal
index 7fdfaac..f9655d4 100644
--- a/packages/glpk/hmatrix-glpk.cabal
+++ b/packages/glpk/hmatrix-glpk.cabal
@@ -1,5 +1,5 @@
1Name: hmatrix-glpk 1Name: hmatrix-glpk
2Version: 0.2.2 2Version: 0.3.0
3License: GPL 3License: GPL
4License-file: LICENSE 4License-file: LICENSE
5Author: Alberto Ruiz 5Author: Alberto Ruiz
@@ -11,7 +11,7 @@ Description:
11 Simple interface to linear programming functions provided by GLPK. 11 Simple interface to linear programming functions provided by GLPK.
12 12
13Category: Math 13Category: Math
14tested-with: GHC ==6.10.4, GHC ==7.0.3 14tested-with: GHC ==7.4
15 15
16cabal-version: >=1.2 16cabal-version: >=1.2
17build-type: Simple 17build-type: Simple
@@ -30,7 +30,7 @@ library
30 30
31 c-sources: lib/Numeric/LinearProgramming/glpk.c 31 c-sources: lib/Numeric/LinearProgramming/glpk.c
32 32
33 ghc-options: -Wall 33 ghc-options: -Wall
34 34
35 extra-libraries: glpk 35 extra-libraries: glpk
36 36
@@ -42,3 +42,7 @@ library
42 if arch(i386) 42 if arch(i386)
43 cc-options: -arch i386 43 cc-options: -arch i386
44 44
45source-repository head
46 type: git
47 location: https://github.com/AlbertoRuiz/hmatrix
48
diff --git a/packages/glpk/lib/Numeric/LinearProgramming.hs b/packages/glpk/lib/Numeric/LinearProgramming.hs
index f0709c3..b832bac 100644
--- a/packages/glpk/lib/Numeric/LinearProgramming.hs
+++ b/packages/glpk/lib/Numeric/LinearProgramming.hs
@@ -69,8 +69,9 @@ module Numeric.LinearProgramming(
69 69
70import Numeric.LinearAlgebra hiding (i) 70import Numeric.LinearAlgebra hiding (i)
71import Data.Packed.Development 71import Data.Packed.Development
72import Foreign(Ptr,unsafePerformIO) 72import Foreign(Ptr)
73import Foreign.C.Types(CInt) 73import System.IO.Unsafe(unsafePerformIO)
74import Foreign.C.Types
74import Data.List((\\),sortBy,nub) 75import Data.List((\\),sortBy,nub)
75import Data.Function(on) 76import Data.Function(on)
76 77