Commit 271dde9
committed
value: display left and rights as L(x) and R(x); drop DispUnlessUnit
Previously we would display left branches as 0 and right branches as 1,
and had a special case where if the child node was unit, we would not
display the inner (ε) to reduce noise.
Now that we special-case all bitstrings, in particular bitstrings of
length 1, this special-case is unnecessary and actually confusing. Now
if we encounter a sum type we know it's *not* a bit and it would be
clearer to indicate it as L or R, and if the child is a unit, we should
unconditionally display that.1 parent 6c88a8c commit 271dde9
1 file changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | 762 | | |
764 | 763 | | |
765 | 764 | | |
766 | 765 | | |
767 | | - | |
768 | | - | |
769 | | - | |
| 766 | + | |
770 | 767 | | |
771 | 768 | | |
772 | 769 | | |
773 | 770 | | |
774 | | - | |
| 771 | + | |
775 | 772 | | |
776 | 773 | | |
777 | 774 | | |
778 | 775 | | |
779 | 776 | | |
780 | 777 | | |
781 | 778 | | |
782 | | - | |
783 | | - | |
784 | | - | |
| 779 | + | |
785 | 780 | | |
786 | 781 | | |
787 | 782 | | |
| |||
812 | 807 | | |
813 | 808 | | |
814 | 809 | | |
815 | | - | |
816 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
817 | 813 | | |
818 | | - | |
819 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
820 | 817 | | |
821 | 818 | | |
822 | 819 | | |
| |||
0 commit comments