hspec-golden-aeson-0.1.0.0: Use tests to monitor changes in Aeson serialization

Safe HaskellNone
LanguageHaskell2010

Test.Aeson.Internal.Utils

Synopsis

Documentation

addBrackets :: String -> String Source #

put brackets around a String.

shouldBeIdentity :: (Eq a, Show a, Arbitrary a) => Proxy a -> (a -> IO a) -> Property Source #

hspec style combinator to easily write tests that check the a given operation returns the same value it was given, e.g. roundtrip tests.

aesonDecodeIO :: FromJSON a => ByteString -> IO a Source #

run decode in IO, if it returns Left then throw an error.