diff options
Diffstat (limited to 'packages/glpk')
-rw-r--r-- | packages/glpk/hmatrix-glpk.cabal | 10 | ||||
-rw-r--r-- | packages/glpk/lib/Numeric/LinearProgramming.hs | 5 |
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 @@ | |||
1 | Name: hmatrix-glpk | 1 | Name: hmatrix-glpk |
2 | Version: 0.2.2 | 2 | Version: 0.3.0 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: 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 | ||
13 | Category: Math | 13 | Category: Math |
14 | tested-with: GHC ==6.10.4, GHC ==7.0.3 | 14 | tested-with: GHC ==7.4 |
15 | 15 | ||
16 | cabal-version: >=1.2 | 16 | cabal-version: >=1.2 |
17 | build-type: Simple | 17 | build-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 | ||
45 | source-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 | ||
70 | import Numeric.LinearAlgebra hiding (i) | 70 | import Numeric.LinearAlgebra hiding (i) |
71 | import Data.Packed.Development | 71 | import Data.Packed.Development |
72 | import Foreign(Ptr,unsafePerformIO) | 72 | import Foreign(Ptr) |
73 | import Foreign.C.Types(CInt) | 73 | import System.IO.Unsafe(unsafePerformIO) |
74 | import Foreign.C.Types | ||
74 | import Data.List((\\),sortBy,nub) | 75 | import Data.List((\\),sortBy,nub) |
75 | import Data.Function(on) | 76 | import Data.Function(on) |
76 | 77 | ||