3

Is anyone using data parallel Haskell with the 2012.4.0.0 Haskell platform?

I'm a Haskell beginner - but wanted to experiment with switching from lists to parallel arrays.

When I try and run

cabal install dph-examples

I get a build problem 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 nor sure what to do. Any experts out there?

Atropo
  • 12,231
  • 6
  • 49
  • 62
GregD
  • 93
  • 5

2 Answers2

1

bmp depends on bytestring and binary. binary depends on bytestring itself. Your binary package was built with bytestring-0.9.2.1, the version that came with the platform.

When trying to cabal install bmp, cabal tries to install the latest version for which it can construct a valid install plan without reinstalling libraries (if possible at all). With a binary built with a bytestring-0.9.2.1, that is bmp-1.2.3.1, where the author forgot to bump the lower bound of the bytestring version, so the build fails since fromStrict was added in bytestring-0.10.

You can either install an earlier version of bmp,

cabal install "bmp < 1.2.3"

which is the safe option, or you can rebuild binary against the newer bytestring version. The latter likely will break some other packages depending on binary, so those would have to be rebuilt too. And for a package like bytestring which many other packages depend on, it would also be likely that a similar problem occurs soon again.

Daniel Fischer
  • 181,706
  • 17
  • 308
  • 431
  • Thanks very much - that fixed the initial problem. Now into a world of broken dependencies of OpenGL, gloss, GLUT. Guess the problem is very few people are using this.... – GregD Jan 25 '13 at 19:51
  • Uh-oh. What broke those? Did you rebuild `binary` and that broke those or what? – Daniel Fischer Jan 25 '13 at 20:07
  • I must have messed up the environment in my earlier attempts to get things working. Have done a clean Haskell Platform install, followed by a 'failed' `cabal install dph-examples`, followed by your suggested `cabal install "bmp < 1.2.3"` followed by another `cabal install dph-examples` and everything look great. Thanks so much for your help Daniel! – GregD Jan 26 '13 at 01:09
0

Make sure you have bytestring >= 0.10.0.0 installed.

tom
  • 18,953
  • 4
  • 35
  • 35