eschnett / mpi-hs

MPI bindings for Haskell
Other
16 stars 3 forks source link

Won't compile with GHC >= 8.10 #2

Closed konn closed 4 years ago

konn commented 4 years ago

Compiling with GHC 8.10, with nightly-2020-06-29 build-plan, mpi-hs fails to compile with the following error:

$ stack build mpi-hs --resolver nightly
Selected resolver: nightly-2020-06-29
mpi-hs> configure
mpi-hs> Configuring mpi-hs-0.7.1.2...
mpi-hs> build
mpi-hs> Preprocessing library for mpi-hs-0.7.1.2..
mpi-hs> Building library for mpi-hs-0.7.1.2..
mpi-hs> [1 of 3] Compiling Control.Distributed.MPI
mpi-hs> 
mpi-hs> /private/var/folders/pv/mtbzyjyj229g928n710c9d_40000gn/T/stack-c176450acadc6b92/mpi-hs-0.7.1.2/lib/Control/Distributed/MPI.chs:264:17: error:
mpi-hs>     Module ‘GHC.Arr’ does not export ‘indexError’
mpi-hs>     |
mpi-hs> 264 | 
mpi-hs>     |                 ^^^^^^^^^^
mpi-hs> 

It seems that GHC.Arr.indexError has gone in base >= 4.13.0.0.

konn commented 4 years ago

Also (silently) reported here: https://github.com/commercialhaskell/stackage/issues/5444

eschnett commented 4 years ago

Thanks for the notice. I uploaded a new version 0.7.2.0 that drops the dependency on GHC.Arr.indexError.

konn commented 4 years ago

Thanks!