Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.13.0
-
None
-
None
-
macOS 10.15.4
stack 2.3.1
Description
When building using GHC >= 8.8, I get the following error
> stack --resolver lts-15.11 build thrift ... Error: While constructing the build plan, the following exceptions were encountered:In the dependencies for thrift-0.13.0: network-3.1.1.1 from stack configuration does not match >=2.6 && <3.0 (latest matching version is 2.8.0.1) needed since thrift is a build target.Some different approaches to resolving this: * Set 'allow-newer: true' in /Users/liam/.stack/config.yaml to ignore all version constraints and build anyway. * Recommended action: try adding the following to your extra-deps in /Users/liam/.stack/global-project/stack.yaml:- network-2.8.0.1@sha256:0f165dffa752d8cde30c2bde86f80609c4f1dc5eeb3182d593041f97839c5b3b,3011
In a monolithic project, it is not acceptable to downgrade all uses of the networking library.
Trying to debug further by allowing the newer networking library shows that the networking API has substantially changed between 2.x and 3.x
> stack --resolver lts-15.11 build thrift ... thrift > configure thrift > Configuring thrift-0.13.0... thrift > build thrift > Preprocessing library for thrift-0.13.0.. thrift > Building library for thrift-0.13.0.. thrift > [ 1 of 17] Compiling Thrift.Arbitraries thrift > [ 2 of 17] Compiling Thrift.Transport thrift > [ 3 of 17] Compiling Thrift.Transport.Empty thrift > [ 4 of 17] Compiling Thrift.Transport.Handle thrift > thrift > /private/var/folders/b4/vndwlkd168l7lnn9zcq_3y080000gn/T/stack-650b5907574f1d58/thrift-0.13.0/src/Thrift/Transport/Handle.hs:34:1: error: thrift > Could not find module 'Network' thrift > Use -v (or `:set -v` in ghci) to see a list of the files searched for. thrift > | thrift > 34 | import Network thrift > | ^^^^^^^^^^^^^^ thrift >