Closed lukstafi closed 1 year ago
Change of behavior: the conversion from PrintBox.Simple.t
to PrintBox.t
introduces centered alignment for the top cell of any two-cell h-list.
Sorry, I opened this PR too early. I'm rewriting it to handle sharing.
This solution adds noise to the library but provides little value. The better approach would be to work out a proper layout mechanism.
See issue #25. Implements a poor-man's support for DAGs, where the caller annotates potentially-shared subtrees with IDs. Then,
PrintBox.Simple
eliminates shared subtrees by replacing them with just the [ID] text. Also implements a conversion to represent expression trees more compactly.