summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim
diff options
context:
space:
mode:
authorDaniel Rogozin <daniel.rogozin@serokell.io>2020-05-27 13:35:24 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-06 09:26:51 -0500
commit7f3524efcbd58ca6837ec0ffca6ddd121d64e4de (patch)
treeaa296d28ed6475799ef369b0608736afcb467495 /libraries/ghc-prim
parent640a3ece333d1b0d0af8f353c3e1df9dd0cb9ef3 (diff)
downloadhaskell-7f3524efcbd58ca6837ec0ffca6ddd121d64e4de.tar.gz
The Char kind (#11342)
Co-authored-by: Rinat Stryungis <rinat.stryungis@serokell.io> Implement GHC Proposal #387 * Parse char literals 'x' at the type level * New built-in type families CmpChar, ConsSymbol, UnconsSymbol * New KnownChar class (cf. KnownSymbol and KnownNat) * New SomeChar type (cf. SomeSymbol and SomeNat) * CharTyLit support in template-haskell Updated submodules: binary, haddock. Metric Decrease: T5205 haddock.base Metric Increase: Naperian T13035
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r--libraries/ghc-prim/GHC/Types.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/ghc-prim/GHC/Types.hs b/libraries/ghc-prim/GHC/Types.hs
index dc81a9b8d3..f558619ac1 100644
--- a/libraries/ghc-prim/GHC/Types.hs
+++ b/libraries/ghc-prim/GHC/Types.hs
@@ -526,6 +526,7 @@ data KindRep = KindRepTyConApp TyCon [KindRep]
data TypeLitSort = TypeLitSymbol
| TypeLitNat
+ | TypeLitChar
-- Show instance for TyCon found in GHC.Show
data TyCon = TyCon WORD64_TY -- ^ Fingerprint (high)