-
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.
singletons-base
: Re-export singleton types in GHC.TypeLits
As of `base-4.18.0.0`, `GHC.TypeLits` now exports the `SChar`, `SNat`, and `SSymbol` singleton types from `GHC.TypeLits` and `GHC.TypeNats` (see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/9064). These subsume the custom singleton types that `GHC.TypeLits.Singletons` defines for `Char`, `Natural`, and `Text`, so this patch removes much of the custom definitions in `GHC.TypeLits.Singletons` in favor of re-exporting the equivalent definitions from `GHC.TypeLits`. In addition, the new API in `GHC.TypeLits` allows us to define some instances in a slightly more direct fashion, without needing to match on `SomeChar`, `SomeNat`, or `SomeSymbol` first. Checks off one box in #540.
- Loading branch information
1 parent
9db05f4
commit 2440120
Showing
5 changed files
with
115 additions
and
203 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.