Skip to content

Commit 57f92e2

Browse files
author
Poscat
committed
Clarify the reason why the case is unreachable
1 parent 13f0e48 commit 57f92e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Aeson/TH.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ sumToValue target opts multiCons nullary conName value pairs
421421
content = pairs contentsFieldName
422422
in fromPairsE $
423423
if nullary then tag else infixApp tag [|(Monoid.<>)|] content
424-
TaggedFlatObject {} -> error "impossible"
424+
TaggedFlatObject {} -> error "TaggedFlatObject: Should be handled already"
425425
ObjectWithSingleField ->
426426
objectE [(conString opts conName, value)]
427427
UntaggedValue | nullary -> conStr target opts conName

0 commit comments

Comments
 (0)