Trying to experiment with data in parallel to Haskell - but can't get it to install
Does anyone use data parallel to Haskell with the framework 2012.4.0.0 Haskell
?
I'm a Haskell beginner but wanted to experiment with going from lists to parallel arrays.
When I try to run
cabal install dph-examples
I am getting build issue with bmp.1.2.3.1
:
Codec\BMP.hs:208:11: Not in scope: `BSL.fromStrict'
Sure this is some type of version mismatch but not sure what to do. Any experts out there?
source to share
bmp
depends on bytestring
and binary
. binary
depends on yourself bytestring
. Your package binary
was built with the bytestring-0.9.2.1
version supplied with the platform.
When it tries cabal install bmp
, it cabal
tries to install the latest version for which it can build a valid installation plan without reinstalling the libraries (if possible at all). With binary
built with bytestring-0.9.2.1
, that is bmp-1.2.3.1
, where the author forgot to collapse the lower bound of the version bytestring
, so the build failed because it fromStrict
was added to bytestring-0.10
.
You can install an earlier version bmp
,
cabal install "bmp < 1.2.3"
which is a safe option, or you can rebuild binary
against a newer version bytestring
. The latter will probably break some other packages depending on binary
, so these will need to be rebuilt as well. And for a package such as bytestring
that many other packages depend on, it is also likely that a similar problem will arise soon.
source to share