Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove StatusDoNotUse enum from StatusCode #166

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/grpc-haskell-core.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: grpc-haskell-core
version: 0.5.0
version: 0.6.0
synopsis: Haskell implementation of gRPC layered on shared C library.
homepage: https://github.com/awakenetworks/gRPC-haskell
license: Apache-2.0
Expand Down Expand Up @@ -57,9 +57,11 @@ library
Network.GRPC.LowLevel.Call
Network.GRPC.LowLevel.Call.Unregistered
Network.GRPC.LowLevel.Client

extra-libraries:
grpc
, gpr

includes:
include/grpc_haskell.h
, grpc/grpc.h
Expand Down
17 changes: 9 additions & 8 deletions core/src/Network/GRPC/Unsafe/Op.chs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ import Language.Haskell.TH.Syntax (Lift)

-- StatusCode ------------------------------------------------------------------

-- | 'StatusCode' enumerates the set of gRPC status codes. See the
-- | 'StatusCode' enumerates the set of gRPC status codes. See the
-- ["gRPC Core"](https://grpc.github.io/grpc/core/md_doc_statuscodes.html)
-- library reference for more information regarding the 'StatusCode' enum.
{#enum
grpc_status_code as StatusCode {underscoreToCase}
-- library reference for more information regarding the 'StatusCode' enum.
{#enum
grpc_status_code as StatusCode {underscoreToCase}
omit (GRPC_STATUS__DO_NOT_USE)
deriving (Bounded, Data, Eq, Generic, Lift, Ord, Read, Show)
#}

Expand All @@ -45,8 +46,8 @@ import Language.Haskell.TH.Syntax (Lift)

--------------------------------------------------------------------------------

{#enum
grpc_op_type as OpType {underscoreToCase}
{#enum
grpc_op_type as OpType {underscoreToCase}
deriving (Eq, Show)
#}

Expand All @@ -60,9 +61,9 @@ import Language.Haskell.TH.Syntax (Lift)
-- always the OpArray to mutate and the index in the array at which to create
-- the new op. After processing the batch and getting out any results, call
-- 'opArrayDestroy'.
{#pointer
{#pointer

*grpc_op as OpArray newtype
*grpc_op as OpArray newtype
#}

deriving instance Show OpArray
Expand Down
4 changes: 2 additions & 2 deletions grpc-haskell.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: grpc-haskell
version: 0.3.0
version: 0.4.0
synopsis: Haskell implementation of gRPC layered on shared C library.
homepage: https://github.com/awakenetworks/gRPC-haskell
license: Apache-2.0
Expand Down Expand Up @@ -31,7 +31,7 @@ library
, bytestring >= 0.10 && <0.12
, proto3-suite >=0.4.3
, proto3-wire >=1.2.2
, grpc-haskell-core >=0.2.1
, grpc-haskell-core >=0.6.0
, async >=2.1 && <2.3
, managed >= 1.0.5

Expand Down
Loading