diff --git a/hedgehog-extras/hedgehog-extras.haddock b/hedgehog-extras/hedgehog-extras.haddock
index 16eb9bf5..de6e0a6d 100644
Binary files a/hedgehog-extras/hedgehog-extras.haddock and b/hedgehog-extras/hedgehog-extras.haddock differ
diff --git a/hedgehog-extras/src/Hedgehog.Extras.Aeson.html b/hedgehog-extras/src/Hedgehog.Extras.Aeson.html
index 0529b992..0675d6cf 100644
--- a/hedgehog-extras/src/Hedgehog.Extras.Aeson.html
+++ b/hedgehog-extras/src/Hedgehog.Extras.Aeson.html
@@ -41,21 +41,21 @@
strictComparison = Bool
False
-goldenTestJsonValue :: forall a. ()
- => Eq a
- => FromJSON a
- => Show a
- => ToJSON a
+goldenTestJsonValue :: forall a. ()
+ => Eq a
+ => FromJSON a
+ => Show a
+ => ToJSON a
=> HasCallStack
- => a
+ => a
-> FilePath
-> Property
goldenTestJsonValue :: forall a.
(Eq a, FromJSON a, Show a, ToJSON a, HasCallStack) =>
a -> FilePath -> Property
-goldenTestJsonValue a
-x FilePath
-path = forall a. HasCallStack => (HasCallStack => a) -> a
+goldenTestJsonValue a
+x FilePath
+path = forall a. HasCallStack => (HasCallStack => a) -> a
withFrozenCallStack forall a b. (a -> b) -> a -> b
$ TestLimit -> Property -> Property
withTests TestLimit
@@ -63,11 +63,11 @@
. HasCallStack => PropertyT IO () -> Property
property forall a b. (a -> b) -> a -> b
$ do
- ByteString
-bs <- forall (m :: * -> *) a. MonadIO m => IO a -> m a
+ ByteString
+bs <- forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (FilePath -> IO ByteString
LBS.readFile FilePath
-path)
+path)
forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
when Bool
writeNewGoldFiles forall a b. (a -> b) -> a -> b
@@ -75,30 +75,30 @@
liftIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. FilePath -> ByteString -> IO ()
LBS.writeFile (FilePath
-path forall a. Semigroup a => a -> a -> a
+path forall a. Semigroup a => a -> a -> a
<> FilePath
".gold") forall a b. (a -> b) -> a -> b
$ forall a. ToJSON a => a -> ByteString
encode a
-x
+x
forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
when Bool
strictComparison forall a b. (a -> b) -> a -> b
$ forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap forall a. ToJSON a => a -> ByteString
encode (forall a. FromJSON a => ByteString -> Either FilePath a
-eitherDecode @a ByteString
-bs) forall (m :: * -> *) a.
+eitherDecode @a ByteString
+bs) forall (m :: * -> *) a.
(MonadTest m, Eq a, Show a, HasCallStack) =>
a -> a -> m ()
=== forall a b. b -> Either a b
Right ByteString
-bs
+bs
case forall a. FromJSON a => ByteString -> Either FilePath a
eitherDecode ByteString
-bs of
- Left FilePath
-err -> forall (m :: * -> *) a.
+bs of
+ Left FilePath
+err -> forall (m :: * -> *) a.
(MonadTest m, HasCallStack) =>
Maybe Diff -> FilePath -> m a
H.failWith forall a. Maybe a
@@ -107,31 +107,31 @@
"could not decode: " forall a. Semigroup a => a -> a -> a
<> forall a. Show a => a -> FilePath
show FilePath
-err
- Right a
-x' -> a
-x forall (m :: * -> *) a.
+err
+ Right a
+x' -> a
+x forall (m :: * -> *) a.
(MonadTest m, Eq a, Show a, HasCallStack) =>
a -> a -> m ()
=== a
-x'
+x'
goldenTestJsonValuePretty
- :: forall a. ()
- => Eq a
- => FromJSON a
+ :: forall a. ()
+ => Eq a
+ => FromJSON a
=> HasCallStack
- => Show a
- => ToJSON a
- => a
+ => Show a
+ => ToJSON a
+ => a
-> FilePath
-> Property
goldenTestJsonValuePretty :: forall a.
(Eq a, FromJSON a, HasCallStack, Show a, ToJSON a) =>
a -> FilePath -> Property
-goldenTestJsonValuePretty a
-x FilePath
-path =
+goldenTestJsonValuePretty a
+x FilePath
+path =
forall a. HasCallStack => (HasCallStack => a) -> a
withFrozenCallStack
forall a b. (a -> b) -> a -> b
@@ -143,17 +143,17 @@
property
forall a b. (a -> b) -> a -> b
$ do
- ByteString
-bs <- forall (m :: * -> *) a. MonadIO m => IO a -> m a
+ ByteString
+bs <- forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (FilePath -> IO ByteString
LBS.readFile FilePath
-path)
+path)
let
- defConfig' :: Config
-defConfig' = Config
+ defConfig' :: Config
+defConfig' = Config
{ confIndent :: Indent
confIndent = Int -> Indent
Spaces Int
@@ -177,32 +177,32 @@
liftIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. FilePath -> ByteString -> IO ()
LBS.writeFile (FilePath
-path forall a. Semigroup a => a -> a -> a
+path forall a. Semigroup a => a -> a -> a
<> FilePath
".gold") forall a b. (a -> b) -> a -> b
$ forall a. ToJSON a => Config -> a -> ByteString
encodePretty' Config
-defConfig' a
-x
+defConfig' a
+x
forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
when Bool
strictComparison forall a b. (a -> b) -> a -> b
$ forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap (forall a. ToJSON a => Config -> a -> ByteString
encodePretty' Config
-defConfig') (forall a. FromJSON a => ByteString -> Either FilePath a
-eitherDecode @a ByteString
-bs) forall (m :: * -> *) a.
+defConfig') (forall a. FromJSON a => ByteString -> Either FilePath a
+eitherDecode @a ByteString
+bs) forall (m :: * -> *) a.
(MonadTest m, Eq a, Show a, HasCallStack) =>
a -> a -> m ()
=== forall a b. b -> Either a b
Right ByteString
-bs
+bs
case forall a. FromJSON a => ByteString -> Either FilePath a
eitherDecode ByteString
-bs of
- Left FilePath
-err -> forall (m :: * -> *) a.
+bs of
+ Left FilePath
+err -> forall (m :: * -> *) a.
(MonadTest m, HasCallStack) =>
Maybe Diff -> FilePath -> m a
H.failWith forall a. Maybe a
@@ -211,12 +211,12 @@
"could not decode: " forall a. Semigroup a => a -> a -> a
<> forall a. Show a => a -> FilePath
show FilePath
-err
- Right a
-x' -> a
-x forall (m :: * -> *) a.
+err
+ Right a
+x' -> a
+x forall (m :: * -> *) a.
(MonadTest m, Eq a, Show a, HasCallStack) =>
a -> a -> m ()
=== a
-x'
+x'