-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There were several places in `singletons` that would compute entirely different things depending on the order in which GHC's unique numbers happened to be computed. Like the corresponding `th-desugar` patch (in goldfirere/th-desugar#115), this fixes these issues by swapping out nondeterministic uses of `Map` and `Set` with `th-desugar`'s new `OMap` and `OSet` data structures, which remember the order in which elements were inserted. This patch looks large, but half of the modifications are routine changes brought about by switching data structures, and the other half are test suite wibbles brought about by `singletons` settling on a deterministic order for the expected output. The upshot is that we can finally run the `singletons` test suite with `-dunique-increment=-1` and have it still pass! Hooray! Fixes #367.
- Loading branch information
1 parent
ea63077
commit 0a175d9
Showing
40 changed files
with
1,185 additions
and
1,124 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
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
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
Oops, something went wrong.