haskell-grpc-native / http2-grpc-haskell

gRPC over HTTP/2 for Haskell, client and server
38 stars 25 forks source link

Cannot build on GHC 9 #59

Closed tochicool closed 1 year ago

tochicool commented 2 years ago

Building some packages of this library in GHC 9 leads to compilation issues:

http2-client          > /tmp/stack-49090504ba56a2ab/http2-client-0.10.0.0/src/Network/HTTP2/Client.hs:286:19: error:
http2-client          >     • Couldn't match type: forall a1. StreamStarter a1
http2-client          >                      with: (Http2Stream -> StreamDefinition a)
http2-client          >                            -> ClientIO (Either TooMuchConcurrency a)
http2-client          >       Expected: Http2Client -> StreamStarter a
http2-client          >         Actual: Http2Client -> forall a. StreamStarter a
http2-client          >     • In the expression: _startStream
http2-client          >       In an equation for ‘withHttp2Stream’:
http2-client          >           withHttp2Stream = _startStream
http2-client          >     • Relevant bindings include
http2-client          >         withHttp2Stream :: Http2Client -> StreamStarter a
http2-client          >           (bound at src/Network/HTTP2/Client.hs:286:1)
http2-client          >     |           
http2-client          > 286 | withHttp2Stream = _startStream
http2-client          >     | 

This appears to be because of outdated versions of dependencies that doesn't support GHC 9.