| Copyright | (c) Plow Technologies 2016 |
|---|---|
| License | BSD3 |
| Maintainer | mchaver@gmail.com |
| Stability | Beta |
| Safe Haskell | None |
| Language | Haskell2010 |
Test.Aeson.Internal.Utils
Description
- data Settings = Settings {}
- data GoldenDirectoryOption
- defaultSettings :: Settings
- addBrackets :: String -> String
- shouldBeIdentity :: (Eq a, Show a, Arbitrary a) => Proxy a -> (a -> IO a) -> Property
- aesonDecodeIO :: FromJSON a => ByteString -> IO a
Documentation
Constructors
| Settings | |
Fields
| |
data GoldenDirectoryOption Source #
A custom directory name or a preselected directory name.
Constructors
| CustomDirectoryName String | |
| GoldenDirectory |
defaultSettings :: Settings Source #
The default settings for general use cases.
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.