higherkindness / mu-haskell

Mu (μ) is a purely functional framework for building micro services.
http://higherkindness.io/mu-haskell/
Apache License 2.0
333 stars 19 forks source link

Could not build example client #328

Closed soulomoon closed 2 years ago

soulomoon commented 2 years ago

Similar to https://hackage.haskell.org/package/mu-grpc-client-0.1.0.0/reports/2

My setup is here https://github.com/soulomoon/mapreducehs.

cabal:

executable client
  hs-source-dirs:   app 
  main-is:          Client.hs
  other-modules:    Schema
  ghc-options:      -Wall
  default-language: Haskell2010
  build-depends:
      base            >=4.12  && <5
    , mu-grpc-client  >=0.3.0
    , mu-protobuf     >=0.4.0
    , mu-rpc          >=0.4.0
    , mu-schema       >=0.3.1
    , text

error:

src/Network/GRPC/Client.hs:77:44: error:
    Not in scope: type constructor or class ‘RPC’
   |
77 | waitReply :: (Service s, HasMethod s m) => RPC s m -> Decoding -> Http2Stream -> IncomingFlowControl -> IO (RawReply (MethodOutput s m))
   |                                            ^^^

src/Network/GRPC/Client.hs:115:33: error:
    Not in scope: type constructor or class ‘RPC’
    |
115 | rpcFromCall :: RPCCall s m a -> RPC s m
    |                                 ^^^

src/Network/GRPC/Client.hs:159:6: error:
    Not in scope: type constructor or class ‘RPC’
    |
159 |   => RPC s m
    |      ^^^

src/Network/GRPC/Client.hs:212:6: error:
    Not in scope: type constructor or class ‘RPC’
    |
212 |   => RPC s m
    |      ^^^

src/Network/GRPC/Client.hs:239:6: error:
    Not in scope: type constructor or class ‘RPC’
    |
239 |   => RPC s m
    |      ^^^

src/Network/GRPC/Client.hs:266:6: error:
    Not in scope: type constructor or class ‘RPC’
    |
266 |   => RPC s m
    |      ^^^
soulomoon commented 2 years ago

add
http2-client-grpc >=0.8.0.0 fix it