Skip to content

Commit 50074c6

Browse files
authored
Remove unnecessary constraint in withEmbeddedJSON
Closes #610. I don't think any other changes are needed here besides deleting the constraint.
1 parent d404a85 commit 50074c6

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)