hspec-golden-aeson-0.1.0.0: Use tests to monitor changes in Aeson serialization
Test.Aeson.Internal.RoundtripSpecs
Description
Internal module, use at your own risk.
Synopsis
roundtripSpecs :: forall a. (Typeable a, Eq a, Show a, Arbitrary a, ToJSON a, FromJSON a) => Proxy a -> Spec Source #
Allows to obtain a roundtrip test to check whether values of the given type can be successfully converted to JSON and back.
roundtripSpecs will
roundtripSpecs
Arbitrary
ToJSON
FromJSON
Eq
genericAesonRoundtripWithNote :: forall a. (Typeable a, Eq a, Show a, Arbitrary a, ToJSON a, FromJSON a) => Proxy a -> Maybe String -> Spec Source #
use this directly if you want to add your own notes.