We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d404a85 + 50074c6 commit 83ae4f9Copy full SHA for 83ae4f9
Data/Aeson/Types/FromJSON.hs
@@ -669,7 +669,7 @@ withBool expected _ v = typeMismatch expected v
669
{-# INLINE withBool #-}
670
671
-- | Decode a nested JSON-encoded string.
672
-withEmbeddedJSON :: (FromJSON a) => String -> (Value -> Parser a) -> Value -> Parser a
+withEmbeddedJSON :: String -> (Value -> Parser a) -> Value -> Parser a
673
withEmbeddedJSON _ innerParser (String txt) =
674
either fail innerParser $ eitherDecode (Compat.fromStrict $ T.encodeUtf8 txt)
675
where
0 commit comments