[Haskell-cafe] Trouble installing example code for Parallel and Concurrent Programming in Haskell

Tom Ellis tom-lists-haskell-cafe-2023 at jaguarpaw.co.uk
Fri Nov 10 15:57:28 UTC 2023


On Fri, Nov 10, 2023 at 10:22:24AM -0500, Brandon Allbery wrote:
> It has restrictive bounds on `base` (which secretly means ghc). You can try
> `--allow-newer` to see if it works with newer versions.
> 
> On Fri, Nov 10, 2023 at 9:55 AM David Banas <capn.freako at gmail.com> wrote:
> > I just picked up a copy of “Parallel and Concurrent Programming in
> > Haskell”.
> > And I’m trying to follow the instructions on p.4 for getting the examples
> > installed, but having trouble:
[...]

Oh woe, this package is sorely out of date.  Sadly --allow-newer is
too loose.  There are compile failures. Applying the patch below will
get a lot of it working with GHCs up to 9.2, although things that rely
on Network won't work (there is no longer a top-level Network module).

repa doesn't seem to work with any later GHC, but the bits that don't
depend on repa can probably be brought up to date with later GHCs.

Anyway, it's rather a mess.  Sorry about that.  Hope you can get at
least some use out of the below patch.

Tom





--- parconc-examples-0.4.8/parconc-examples.cabal       2023-11-10
    15:49:49.065195771 +0000
+++ /home/tom/parconc-examples-0.4.8/parconc-examples.cabal
    2023-11-10 15:47:09.037704366 +0000
@@ -84,10 +84,10 @@
   build-depends:
      array >= 0.4 && <0.6,
      async >= 2.0 && < 2.3,
-     base >= 4.5 && < 4.14,
+     base >= 4.5 && < 4.20,
      binary >=0.6.3 && < 0.11,
      bytestring >= 0.9 && < 0.12,
-     containers >= 0.4 && < 0.6,
+     containers >= 0.4 && < 0.7,
      deepseq >= 1.3 && < 1.5,
      directory >= 1.1 && < 1.4,
      filepath >= 1.3 && < 1.5,
@@ -98,15 +98,15 @@
      random >= 1.0 && < 1.3,
      stm >=2.4 && < 2.6,
      time >= 1.4 && < 1.12,
-     template-haskell >= 2.7 && < 2.16,
-     transformers >=0.3 && <0.6,
+     template-haskell >= 2.7 && < 2.22,
+     transformers >=0.3 && <0.7,
      utf8-string >= 0.3 && < 1.1,
-     vector >= 0.10 && < 0.13,
+     vector >= 0.10 && < 0.14,
      xml ==1.3.*,

 common network
   if flag(network26)
-      build-depends: network >= 2.6 && < 2.9
+      build-depends: network >= 2.6 && < 3.2
                    , network-uri >= 2.6 && < 2.7
   else
       build-depends: network >= 2.3 && < 2.6


More information about the Haskell-Cafe mailing list