Derive Read instance for StatusCode (#27)

This commit is contained in:
intractable 2017-08-05 23:46:12 -05:00 committed by GitHub
parent d64c58efcf
commit 918e3a8d5a

View file

@ -18,7 +18,7 @@ import Foreign.Ptr
{#context prefix = "grpc" #}
{#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
-- implementation-dependent. See: