@@ -259,7 +259,7 @@ instance ToJSON NamespaceDiffResult where
259259 case err of
260260 ImpossibleError _ ->
261261 Aeson. object
262- [ " errorKind " .= (" impossibleError" :: Text )
262+ [ " tag " .= (" impossibleError" :: Text )
263263 ]
264264 IncoherentDecl reason ->
265265 let f :: Text -> IncoherentDeclReason -> Aeson. Value
@@ -268,22 +268,22 @@ instance ToJSON NamespaceDiffResult where
268268 ( " oldOrNewBranch" .= which
269269 : case reason of
270270 IncoherentDeclReason'ConstructorAlias typeName constructorName1 constructorName2 ->
271- [ " errorKind " .= (" constructorAlias" :: Text ),
271+ [ " tag " .= (" constructorAlias" :: Text ),
272272 " typeName" .= typeName,
273273 " constructorName1" .= constructorName1,
274274 " constructorName2" .= constructorName2
275275 ]
276276 IncoherentDeclReason'MissingConstructorName typeName ->
277- [ " errorKind " .= (" missingConstructorName" :: Text ),
277+ [ " tag " .= (" missingConstructorName" :: Text ),
278278 " typeName" .= typeName
279279 ]
280280 IncoherentDeclReason'NestedDeclAlias constructorName1 constructorName2 ->
281- [ " errorKind " .= (" constructorAlias" :: Text ),
281+ [ " tag " .= (" constructorAlias" :: Text ),
282282 " constructorName1" .= constructorName1,
283283 " constructorName2" .= constructorName2
284284 ]
285285 IncoherentDeclReason'StrayConstructor _ constructorName ->
286- [ " errorKind " .= (" strayConstructor" :: Text ),
286+ [ " tag " .= (" strayConstructor" :: Text ),
287287 " constructorName" .= constructorName
288288 ]
289289 )
@@ -292,11 +292,11 @@ instance ToJSON NamespaceDiffResult where
292292 EitherWay. Bob reason -> f " new" reason
293293 LibFoundAtUnexpectedPath _ ->
294294 Aeson. object
295- [ " errorKind " .= (" libFoundAtUnexpectedPath" :: Text )
295+ [ " tag " .= (" libFoundAtUnexpectedPath" :: Text )
296296 ]
297297 MissingEntityError _ ->
298298 Aeson. object
299- [ " errorKind " .= (" missingEntityError" :: Text )
299+ [ " tag " .= (" missingEntityError" :: Text )
300300 ]
301301 where
302302 text :: Text -> Text
0 commit comments