If I do stack install hmatrix-glpk I get a bunch of errors like this:
/tmp/stack27499/hmatrix-glpk-0.6.0.0/src/Numeric/LinearProgramming.hs:293:7: error:
• Couldn't match expected type ‘TransRaw
c2
((CInt
-> CInt
-> Ptr Double
-> CInt
-> CInt
-> Ptr Double
-> CInt
-> Ptr Double
-> IO CInt)
-> IO CInt)’
with actual type ‘Matrix Double’
The type variable ‘c2’ is ambiguous
• In the first argument of ‘applyRaw’, namely ‘(cmat c)’
In the expression:
(cmat c) `applyRaw` ((cmat b) `applyRaw` (s `applyRaw` id))
In the first argument of ‘(#|)’, namely
‘((cmat c) `applyRaw` ((cmat b) `applyRaw` (s `applyRaw` id)))
(c_simplex_sparse (fi m) (fi n))’
If I do
stack install hmatrix-glpk
I get a bunch of errors like this:This happens both with ghc 8.0.1 and 7.10.3.