Remove error calls and replace with working implementations of ToHttpApiData
commit3e704362c34a730aee05f187bbdcf87ffd658214
authorAlex Mason <Alex.Mason@data61.csiro.au>
dateSat 3 Sep 2016, 00:23 (10 years ago)
parentdbab315
servant-mock/test/Servant/MockSpec.hs+2−2
@@ -40,8 +40,8 @@ data TestHeader
4040
4141instance ToHttpApiData TestHeader where
4242 toHeader = toHeader . show
43− toUrlPiece _ = error "ToHttpApiData.toUrlPiece not implemented for TestHeader"
44− toQueryParam _ = error "ToHttpApiData.toQueryParam not implemented for TestHeader"
43+ toUrlPiece = toUrlPiece . show
44+ toQueryParam = toQueryParam . show
4545
4646
4747instance Arbitrary TestHeader where