haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Installing profiling libraries #190

Closed mdibaiee closed 8 years ago

mdibaiee commented 8 years ago

Hey, thanks for your work, it's really useful. :+1:

I'm trying to build my project with -prof, but an error is thrown:

$ stack ghc -- -O examples/xor.hs -prof -fprof-auto -fprof-cafs

Could not find module ‘Numeric.LinearAlgebra’
Perhaps you haven't installed the profiling libraries for package ‘hmatrix-0.17.0.1@hmatr_5ij5XULXjdZ0y5onBrWfif’?

I have library-profiling: True in my ~/.cabal/config and I tried re-installing with -p flag, neither works.

cabal install --reinstall -p hmatrix

Edit: I even tried cabal sandbox delete and re-initializing a sandbox, and then cabal install -p, still didn't work.

I think it might be an issue on hmatrix's side, or maybe not. Any help is appreciated, thanks.