Skip to content

Commit

Permalink
Merge pull request #31 from well-typed/edsko/avoid-PackageInfo
Browse files Browse the repository at this point in the history
Don't use `PackageInfo`
  • Loading branch information
edsko authored Aug 7, 2023
2 parents f93655f + 275ace8 commit 3836078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions grapesy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ library
Network.GRPC.Util.Session.Server
Network.GRPC.Util.Thread
Network.GRPC.Util.TLS

PackageInfo_grapesy
Paths_grapesy
hs-source-dirs:
src
build-depends:
Expand Down
9 changes: 3 additions & 6 deletions src/Network/GRPC/Spec/Request.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import Network.GRPC.Spec.PercentEncoding qualified as PercentEncoding
import Network.GRPC.Spec.RPC
import Network.GRPC.Util.Partial

import PackageInfo_grapesy qualified as PackageInfo
import Paths_grapesy qualified as Grapesy

{-------------------------------------------------------------------------------
Construction
Expand Down Expand Up @@ -138,13 +138,10 @@ callDefinition proxy = \hdrs -> catMaybes [
buildUserAgent = (
"user-agent"
, mconcat [
"grpc-"
, "haskell"
, "-" <> BS.Strict.C8.pack (PackageInfo.name)
, "/"
"grpc-haskell-grapesy/"
, mconcat . intersperse "." $
map (BS.Strict.C8.pack . show) $
versionBranch PackageInfo.version
versionBranch Grapesy.version
]
)

Expand Down

0 comments on commit 3836078

Please sign in to comment.