const args = renderArgsCompact(fi.fiArgs, fi.fiTyVars);
const head = fi.fiFamily.qnName + (args ? ' ' + args : '');
if (fi.fiIsData) {
- // Show the user-declared data constructors on the right-hand
- // side, using `|` between alternatives. Empty fiDataCons (older
- // dumps, or extraction edge cases) just degrade to the bare
- // head with no `=`.
+ // Node label: just the constructor name(s), not the fields.
+ // Fields tend to be uninteresting at-a-glance and pad the
+ // node visually; the side panel still shows the full
+ // declaration for users who want the detail.
const dcs = fi.fiDataCons || [];
if (dcs.length === 0) return head;
- const cons = dcs.map(dc => renderDataCon(dc, fi.fiTyVars)).join(' | ');
+ const cons = dcs.map(dc => dc.dcName || '?').join(' | ');
return head + ' = ' + cons;
}
return head + ' = ' + renderArg(fi.fiRhs, fi.fiTyVars);