mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-23 03:29:42 +01:00
Derive Read instance for StatusCode (#27)
This commit is contained in:
parent
d64c58efcf
commit
918e3a8d5a
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ import Foreign.Ptr
|
||||||
{#context prefix = "grpc" #}
|
{#context prefix = "grpc" #}
|
||||||
|
|
||||||
{#enum grpc_op_type as OpType {underscoreToCase} deriving (Eq, Show)#}
|
{#enum grpc_op_type as OpType {underscoreToCase} deriving (Eq, Show)#}
|
||||||
{#enum grpc_status_code as StatusCode {underscoreToCase} deriving (Eq, Show)#}
|
{#enum grpc_status_code as StatusCode {underscoreToCase} deriving (Eq, Read, Show)#}
|
||||||
|
|
||||||
-- NOTE: We don't alloc the space for the enum in Haskell because enum size is
|
-- NOTE: We don't alloc the space for the enum in Haskell because enum size is
|
||||||
-- implementation-dependent. See:
|
-- implementation-dependent. See:
|
||||||
|
|
Loading…
Reference in a new issue