-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch migrates the following functions from `singletons-th` to `th-desugar`: * `matchUpSAKWithDecl`, which makes up the type variable binders from a standalone kind signature with the corresponding type variable binders from the type-level declaration header. * The `ForAllTyFlag` data type, a generalization of `Specificity` and `BndrVis`. (`matchUpSAKWithDecl` returns `[TyVarBndr ForAllTyFlag]`.) * `tvbForAllTyFlagsToSpecs` and `tvbForAllTyFlagsToBndrVis` functions, which allow converting the results of calling `matchUpSAKWithDecl` to `[TyVarBndrSpec]` or `[TyVarBndrVis]`, respectively. Also add counterparts to the functions above that work over `DTyVarBndr`s instead of `TyVarBndr`s. Fixes #223.
- Loading branch information
1 parent
1fa9e64
commit 75a0731
Showing
5 changed files
with
815 additions
and
13 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
Oops, something went wrong.