Skip to content

Commit 83ae4f9

Browse files
authored
Merge pull request #611 from mithrandi/patch-1
Remove unnecessary constraint in withEmbeddedJSON
2 parents d404a85 + 50074c6 commit 83ae4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Aeson/Types/FromJSON.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ withBool expected _ v = typeMismatch expected v
669669
{-# INLINE withBool #-}
670670

671671
-- | Decode a nested JSON-encoded string.
672-
withEmbeddedJSON :: (FromJSON a) => String -> (Value -> Parser a) -> Value -> Parser a
672+
withEmbeddedJSON :: String -> (Value -> Parser a) -> Value -> Parser a
673673
withEmbeddedJSON _ innerParser (String txt) =
674674
either fail innerParser $ eitherDecode (Compat.fromStrict $ T.encodeUtf8 txt)
675675
where

0 commit comments

Comments
 (0)