You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Liam Damewood (Jira)" <ji...@apache.org> on 2020/05/03 22:04:00 UTC

[jira] [Created] (THRIFT-5193) Thrift is not compatible with GHC >= 8.8

Liam Damewood created THRIFT-5193:
-------------------------------------

             Summary: Thrift is not compatible with GHC >= 8.8
                 Key: THRIFT-5193
                 URL: https://issues.apache.org/jira/browse/THRIFT-5193
             Project: Thrift
          Issue Type: Wish
          Components: Haskell - Library
    Affects Versions: 0.13.0
         Environment: macOS 10.15.4

stack 2.3.1
            Reporter: Liam Damewood


When building using GHC >= 8.8, I get the following error
{noformat}
> 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{noformat}
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
{noformat}
> 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              > {noformat}
 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)