-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hackily sort withs on a kind in outcometree
we need to sort types in a [with] because the order comes from iterating a TypeHash, which is nondeterministic (specifically, the order is different if we disable stack allocation) and brittle. Unfortunately, we lack a good comparison for types, so as a hacky workaround here we format to a string (actually, a string list for easier line breaking when pretty printing) and sort lexicographically before finally printing.
- Loading branch information
1 parent
a830b3a
commit 56f9967
Showing
2 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters