Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ResponseEquality b = ResponseEquality {
- getResponseEquality :: Response b -> Response b -> Bool
- allEquality :: Eq b => ResponseEquality b
- bodyEquality :: Eq b => ResponseEquality b
- jsonEquality :: JsonEq b => ResponseEquality b
- class JsonEq a where
- compareDecodedResponses :: Maybe Value -> Maybe Value -> Bool
Documentation
newtype ResponseEquality b Source #
ResponseEquality | |
|
Instances
Semigroup (ResponseEquality b) Source # | |
Defined in Servant.QuickCheck.Internal.Equality (<>) :: ResponseEquality b -> ResponseEquality b -> ResponseEquality b # sconcat :: NonEmpty (ResponseEquality b) -> ResponseEquality b # stimes :: Integral b0 => b0 -> ResponseEquality b -> ResponseEquality b # | |
Monoid (ResponseEquality b) Source # | |
Defined in Servant.QuickCheck.Internal.Equality mempty :: ResponseEquality b # mappend :: ResponseEquality b -> ResponseEquality b -> ResponseEquality b # mconcat :: [ResponseEquality b] -> ResponseEquality b # |
allEquality :: Eq b => ResponseEquality b Source #
bodyEquality :: Eq b => ResponseEquality b Source #
ByteString Eq
instance over the response body.
Since 0.0.0.0
jsonEquality :: JsonEq b => ResponseEquality b Source #
Equality as Value
. This means that if two bodies are equal as JSON
(e.g., insignificant whitespace difference) they are considered equal.
Since 0.0.3.0
Instances
JsonEq ByteString Source # | |
Defined in Servant.QuickCheck.Internal.Equality decode' :: ByteString -> Maybe Value Source # jsonEq :: ByteString -> ByteString -> Bool Source # | |
JsonEq ByteString Source # | |
Defined in Servant.QuickCheck.Internal.Equality decode' :: ByteString -> Maybe Value Source # jsonEq :: ByteString -> ByteString -> Bool Source # |