Skip to content

Commit

Permalink
Temporary workaround: avoid PackageInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
edsko committed Jul 28, 2023
1 parent f93655f commit 91ed7e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions grapesy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ library
Network.GRPC.Util.Session.Server
Network.GRPC.Util.Thread
Network.GRPC.Util.TLS

PackageInfo_grapesy
hs-source-dirs:
src
build-depends:
Expand Down
10 changes: 2 additions & 8 deletions src/Network/GRPC/Spec/Request.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ module Network.GRPC.Spec.Request (
) where

import Data.ByteString.Char8 qualified as BS.Strict.C8
import Data.List (intersperse)
import Data.List.NonEmpty (NonEmpty)
import Data.Maybe (catMaybes)
import Data.SOP
import Data.Version
import Network.HTTP.Types qualified as HTTP

import Network.GRPC.Spec
Expand All @@ -26,8 +24,6 @@ import Network.GRPC.Spec.PercentEncoding qualified as PercentEncoding
import Network.GRPC.Spec.RPC
import Network.GRPC.Util.Partial

import PackageInfo_grapesy qualified as PackageInfo

{-------------------------------------------------------------------------------
Construction
-------------------------------------------------------------------------------}
Expand Down Expand Up @@ -140,11 +136,9 @@ callDefinition proxy = \hdrs -> catMaybes [
, mconcat [
"grpc-"
, "haskell"
, "-" <> BS.Strict.C8.pack (PackageInfo.name)
, "-" <> "grapesy"
, "/"
, mconcat . intersperse "." $
map (BS.Strict.C8.pack . show) $
versionBranch PackageInfo.version
, "0.1.0"
]
)

Expand Down

0 comments on commit 91ed7e2

Please sign in to comment.