Safe Haskell | None |
---|
- jsonTestsTool :: Name -> APITool
- prop_decodesTo :: forall a. (Eq a, FromJSONWithErrs a) => Value -> a -> Bool
- prop_resultsMatchRoundtrip :: forall a. (Eq a, ToJSON a, FromJSONWithErrs a) => a -> Bool
Documentation
jsonTestsTool :: Name -> APIToolSource
prop_decodesTo :: forall a. (Eq a, FromJSONWithErrs a) => Value -> a -> BoolSource
QuickCheck property that a Value
decodes to an expected Haskell
value, using fromJSONWithErrs
prop_resultsMatchRoundtrip :: forall a. (Eq a, ToJSON a, FromJSONWithErrs a) => a -> BoolSource
QuickCheck property that Haskell values can be encoded with
toJSON
and decoded with fromJSONWithErrs
to get the original
value