Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the
Show (BlockTree a)
instance
This makes it much easier to read the output when debugging the lexer. And it should be `Read`-compatible.. There’s still room for improvement, though: ```haskell Block (Open "scratch.u") [ [ Leaf (WordyId (NameOnly (Name Relative (NameSegment {toUnescapedText = "dontMap"} :| [])))), Leaf (WordyId (NameOnly (Name Relative (NameSegment {toUnescapedText = "f"} :| [])))), Block (Open "=") [ [ Block (Open "cases") [ [ Leaf (WordyId (NameOnly (Name Relative (NameSegment {toUnescapedText = "None"} :| [])))), Block (Open "->") [ [ Leaf (Reserved "false"), ], ] (Just Close), Leaf (Semi True), ], [ Leaf (WordyId (NameOnly (Name Relative (NameSegment {toUnescapedText = "Some"} :| [])))), Leaf (WordyId (NameOnly (Name Relative (NameSegment {toUnescapedText = "_unused"} :| [])))), Block (Open "->") [ [ Leaf (WordyId (NameOnly (Name Relative (NameSegment {toUnescapedText = "f"} :| [])))), Leaf (Numeric "2"), ], ] (Just Close), ], ] (Just Close), ], ] (Just Close), ], ] (Just Close) ```
- Loading branch information