Skip to content

Commit 4b57a87

Browse files
committed
hlint fixes
1 parent a925aa6 commit 4b57a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/Aeson/Types/FromJSON.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,8 @@ instance OVERLAPPABLE_ (Selector s, GFromJSON arity a) =>
10421042

10431043
instance INCOHERENT_ (Selector s, FromJSON a) =>
10441044
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
1045+
parseRecord _ _ (Just lab) obj = M1 . K1 <$> obj .:? lab
1046+
parseRecord opts _ Nothing obj = M1 . K1 <$> obj .:? pack label
10471047
where
10481048
label = fieldLabelModifier opts $
10491049
selName (undefined :: t s (K1 i (Maybe a)) p)

0 commit comments

Comments
 (0)