]> Repositorios git - classgraph.git/commit
Don't show "Right-hand side" for data fam-instances
authorJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:20:31 +0000 (02:20 +0200)
committerJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:20:31 +0000 (02:20 +0200)
commite174401caa10fe2a06534e5b0a9b54237c7f8d76
tree7c6b52ab38fa068d6c238032ab7ffc9453d31e9c
parentdd8ef3b3313a5e281bbc74635af97bc4046b1547
Don't show "Right-hand side" for data fam-instances

GHC's RHS for a @data instance@ is the synthetic R: TyCon (e.g.
@R:CrateInt@), and after the data-family R: rewrite it's the
abstract @FamilyApp Family [args]@ form — structurally equal to the
LHS. Labelling the panel row "Right-hand side: Crate Int" was
misleading because it just repeated what the heading already said.
Replace with a short "Data instance — the right-hand side is a
synthetic GHC-internal data constructor and isn't shown." note for
data fam-instances; type fam-instances keep the real RHS line.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
data/viewer.js