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.
1 parent a925aa6 commit 4b57a87Copy full SHA for 4b57a87
Data/Aeson/Types/FromJSON.hs
@@ -1042,8 +1042,8 @@ instance OVERLAPPABLE_ (Selector s, GFromJSON arity a) =>
1042
1043
instance INCOHERENT_ (Selector s, FromJSON a) =>
1044
FromRecord arity (S1 s (K1 i (Maybe a))) where
1045
- parseRecord _ _ (Just lab) obj = (M1 . K1) <$> obj .:? lab
1046
- parseRecord opts _ Nothing obj = (M1 . K1) <$> obj .:? pack label
+ parseRecord _ _ (Just lab) obj = M1 . K1 <$> obj .:? lab
+ parseRecord opts _ Nothing obj = M1 . K1 <$> obj .:? pack label
1047
where
1048
label = fieldLabelModifier opts $
1049
selName (undefined :: t s (K1 i (Maybe a)) p)
0 commit comments