mu-grpc-client 0.4.0.0 → 0.4.0.1
raw patch · 2 files changed
+7/−8 lines, 2 filesdep ~mu-rpcdep ~optics-coredep ~template-haskellPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: mu-rpc, optics-core, template-haskell, th-abstraction
API changes (from Hackage documentation)
Files
- mu-grpc-client.cabal +4/−4
- src/Mu/GRpc/Client/Record.hs +3/−4
mu-grpc-client.cabal view
@@ -1,5 +1,5 @@ name: mu-grpc-client-version: 0.4.0.0+version: 0.4.0.1 synopsis: gRPC clients from Mu definitions description: With @mu-grpc-client@ you can easily build gRPC clients for mu-haskell!@@ -43,14 +43,14 @@ , mu-protobuf ==0.4.* , mu-rpc ==0.4.* , mu-schema ==0.3.*- , optics-core >=0.2 && <0.3+ , optics-core >=0.2 && <0.4 , sop-core >=0.5 && <0.6 , stm >=2.5 && <3 , stm-chans >=3 && <4 , stm-conduit >=4 && <5- , template-haskell >=2.14 && <2.16+ , template-haskell >=2.14 && <2.17 , text >=1.2 && <2- , th-abstraction >=0.3.2 && <0.4+ , th-abstraction >=0.3.2 && <0.5 , tracing >=0.0.5 hs-source-dirs: src
src/Mu/GRpc/Client/Record.hs view
@@ -114,10 +114,9 @@ [pure (DerivClause Nothing [ConT ''Generic])] let buildName = mkName ("build" ++ complete) s <- SigD buildName <$> [t|GrpcClient -> $(pure (ConT (mkName complete)))|]- c <- Clause <$> pure []- <*> (NormalB <$> [e|buildService @($(pure $ ConT serviceTyName))- @($(pure $ LitT (StrTyLit fieldsPrefix)))|])- <*> pure []+ c <- Clause [] <$> (NormalB <$> [e|buildService @ $(conT serviceTyName)+ @ $(litT (strTyLit fieldsPrefix))|])+ <*> pure [] pure [d, s, FunD buildName [c]] methodToDecl :: String -> Namer