achirkin / easytensor

Many-dimensional type-safe numeric ops
https://hackage.haskell.org/package/easytensor
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

dimensions-0.3.0.0 fails its test suite #1

Closed peti closed 7 years ago

peti commented 7 years ago

Citing from https://nix-cache.s3.amazonaws.com/log/bva35jjj8g57dp80cxd0ds11x76msq16-dimensions-0.3.0.0.drv:

Running 1 test suites...
Test suite dimensions-test: RUNNING...
Prelude.read: no parse
achirkin commented 7 years ago

Thanks for pointing me to this! I've never used nix, but it works using stack or stock cabal. However, I've found a question on stackoverflow that is, probably, related. They refer to a PR to cabal that, hopefully, fixes it.

I guess, the workaround is to force compile library static: cabal configure --enable-tests --disable-shared. Maybe a good combination of ghc-options would solve this, but I cannot test it.

peti commented 7 years ago

Well, compiling the library statically is a rather intrusive change. Also, I don't think that this issue is related to Nix. The ticket suggests that it is related to compiling with dynamic linking enabled.

achirkin commented 7 years ago

Hopefully, fixed that by changing tests type back to exitcode-stdio-1.0.