-
Notifications
You must be signed in to change notification settings - Fork 105
Description
I installed hmatrix as described here https://github.com/haskell-numerics/hmatrix/blob/master/INSTALL.md.
I followed Stack-based build approach (recommended) - pp.1, 2a (i)-(v).
Then I downloaded hmatrix source, found hmatrix.cabal in there: hmatrix-master\packages\base\hmatrix.cabal and ensured that it is correct as described in p.2 (vi).
Then I checked p.2 (vii) for hmatrix-master\packages\gsl\hmatrix-gsl.cabal.
After that pp. 2 (viii)-(ix) worked as described - all tests were done without errors.
I created project with cabal init.
Then added cabal.project with the following content:
packages: .
path-to-hmatrix/hmatrix-master/packages/base
And added dependency to project.cabal file:
build-depends: hmatrix, base ^>=4.18.3.0
My Main.hs:
module Main where
import Numeric.LinearAlgebra.Data
main :: IO ()
main = do
let m = fromColumns [matrix 5 [1 .. 15] ! 0]
print $ dispf 2 m
putStrLn "Hello, Haskell!" -- doesn't print
After cabal run nothing prints to terminal. No errors, just empty output and the program ends successfully.
If I comment out print $ dispf 2 m - it prints Hello, Haskell.
What should I do further?