Skip to content

Commit

Permalink
Merge pull request #28 from well-typed/edsko/testsuite
Browse files Browse the repository at this point in the history
Finish first spec of the testsuite
  • Loading branch information
edsko authored Jul 14, 2023
2 parents 65084c3 + 354735a commit 357d29a
Show file tree
Hide file tree
Showing 5 changed files with 369 additions and 71 deletions.
5 changes: 5 additions & 0 deletions grapesy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,17 @@ test-suite test-grapesy
build-depends:
-- External dependencies
, async >= 2.2 && < 2.3
, bytestring >= 0.10 && < 0.12
, containers >= 0.6 && < 0.7
, contra-tracer >= 0.2 && < 0.3
, data-default >= 0.7 && < 0.8
, exceptions >= 0.10 && < 0.11
, mtl >= 2.2 && < 2.4
, QuickCheck >= 2.14 && < 2.15
, stm >= 2.5 && < 2.6
, tasty >= 1.4 && < 1.5
, tasty-hunit >= 0.10 && < 0.11
-- , tasty-quickcheck >= 0.10 && < 0.11
, text >= 1.2 && < 2.1
, tls >= 1.5 && < 1.8
, unbounded-delays >= 0.1 && < 0.2
Expand Down
4 changes: 3 additions & 1 deletion src/Network/GRPC/Common/CustomMetadata.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
--
-- Intended for qualified import.
--
-- > import Network.GRPC.Common.CustomMetadata (CustomMetadata(..))
-- > import Network.GRPC.Common.CustomMetadata (CustomMetadata(..), HeaderName(..))
-- > import Network.GRPC.Common.CustomMetadata qualified as Metadata
module Network.GRPC.Common.CustomMetadata (
CustomMetadata(..)
, HeaderName(HeaderName)
, AsciiValue(AsciiValue)
) where

import Network.GRPC.Spec.CustomMetadata
2 changes: 1 addition & 1 deletion src/Network/GRPC/Common/Exceptions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data GrpcException = GrpcException {
, grpcErrorMessage :: Maybe Text
, grpcErrorMetadata :: [CustomMetadata]
}
deriving stock (Show)
deriving stock (Show, Eq)
deriving anyclass (Exception)

grpcExceptionFromTrailers :: ProperTrailers -> Maybe GrpcException
Expand Down
2 changes: 1 addition & 1 deletion src/Network/GRPC/Spec/CustomMetadata.hs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data CustomMetadata =

-- | Header name
--
-- Header names cannot be empty, can must consist of digits (@0-9@), lowercase
-- Header names cannot be empty, and must consist of digits (@0-9@), lowercase
-- letters (@a-z@), underscore (@_@), hyphen (@-@), or period (@.@).
--
-- Header names should not start with @grpc-@ (these are reserved for future
Expand Down
Loading

0 comments on commit 357d29a

Please sign in to comment.