Two failed responses can be equal even though they don't come from

the same request.
This commit is contained in:
Stevan Andjelkovic 2017-05-05 15:55:21 +02:00
parent b8de9c8527
commit bf9c84eccb

View File

@ -72,8 +72,8 @@ data ServantError
deriving (Show, Typeable)
instance Eq ServantError where
FailureResponse a b c d == FailureResponse w x y z =
(show a, b, c, d) == (show w, x, y, z)
FailureResponse _ a b c == FailureResponse _ x y z =
(a, b, c) == (x, y, z)
DecodeFailure a b c == DecodeFailure x y z =
(a, b, c) == (x, y, z)
UnsupportedContentType a b == UnsupportedContentType x y =