summaryrefslogtreecommitdiff
path: root/packages/glpk
diff options
context:
space:
mode:
Diffstat (limited to 'packages/glpk')
-rw-r--r--packages/glpk/hmatrix-glpk.cabal5
-rw-r--r--packages/glpk/lib/Numeric/LinearProgramming.hs2
2 files changed, 2 insertions, 5 deletions
diff --git a/packages/glpk/hmatrix-glpk.cabal b/packages/glpk/hmatrix-glpk.cabal
index 3231ef7..f9655d4 100644
--- a/packages/glpk/hmatrix-glpk.cabal
+++ b/packages/glpk/hmatrix-glpk.cabal
@@ -30,10 +30,7 @@ library
30 30
31 c-sources: lib/Numeric/LinearProgramming/glpk.c 31 c-sources: lib/Numeric/LinearProgramming/glpk.c
32 32
33 if impl(ghc < 7.4) 33 ghc-options: -Wall
34 ghc-options: -Wall -fno-warn-dodgy-imports
35 else
36 ghc-options: -Wall
37 34
38 extra-libraries: glpk 35 extra-libraries: glpk
39 36
diff --git a/packages/glpk/lib/Numeric/LinearProgramming.hs b/packages/glpk/lib/Numeric/LinearProgramming.hs
index c8cb0e1..b832bac 100644
--- a/packages/glpk/lib/Numeric/LinearProgramming.hs
+++ b/packages/glpk/lib/Numeric/LinearProgramming.hs
@@ -71,7 +71,7 @@ import Numeric.LinearAlgebra hiding (i)
71import Data.Packed.Development 71import Data.Packed.Development
72import Foreign(Ptr) 72import Foreign(Ptr)
73import System.IO.Unsafe(unsafePerformIO) 73import System.IO.Unsafe(unsafePerformIO)
74import Foreign.C.Types(CInt(..)) 74import Foreign.C.Types
75import Data.List((\\),sortBy,nub) 75import Data.List((\\),sortBy,nub)
76import Data.Function(on) 76import Data.Function(on)
77 77