@@ -1123,14 +1123,14 @@ parseNonAllNullarySum p@(tname :* opts :* _) =
1123
1123
" , but found tag " ++ show tag
1124
1124
cnames_ = unTagged2 (constructorTags (constructorTagModifier opts) :: Tagged2 f [String ])
1125
1125
1126
- TaggedFlatObject {.. } ->
1126
+ TaggedFlatObject {.. } ->
1127
1127
withObject tname $ \ obj -> do
1128
1128
let tagKey = pack tagFieldName
1129
1129
badTag tag = failWith_ $ \ cnames ->
1130
1130
" expected tag field to be one of " ++ show cnames ++
1131
1131
" , but found tag " ++ show tag
1132
1132
cnames_ = unTagged2 (constructorTags (constructorTagModifier opts) :: Tagged2 f [String ])
1133
- tag <- contextType tname . contextTag tagKey cnames_ $ obj .: tagKey
1133
+ tag <- contextType tname . contextTag tagKey cnames_ $ obj .: tagKey
1134
1134
fromMaybe (badTag tag <?> Key tagKey) $
1135
1135
parseTaggedFlatObject (tag :* p) obj
1136
1136
@@ -1454,9 +1454,9 @@ instance (RecordFromJSON arity f, FieldNames f) => FromTaggedFlatObject' arity f
1454
1454
instance FromTaggedFlatObject' arity U1 False where
1455
1455
parseTaggedFlatObject' _ _ = Tagged (pure U1 )
1456
1456
1457
- instance OVERLAPPABLE_ PositionFromObject 1 arity f => FromTaggedFlatObject' arity f False where
1458
- parseTaggedFlatObject' (_ :* p) obj = Tagged (positionFromObject (Proxy :: Proxy 1 ) p obj)
1459
-
1457
+ instance OVERLAPPABLE_ PositionFromObject 0 arity f => FromTaggedFlatObject' arity f False where
1458
+ parseTaggedFlatObject' (_ :* p) obj = Tagged (positionFromObject (Proxy :: Proxy 0 ) p obj)
1459
+
1460
1460
class KnownNat n => PositionFromObject n arity f where
1461
1461
positionFromObject :: Proxy n
1462
1462
-> TypeName :* Options :* FromArgs arity a
0 commit comments