summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchris-martin <ch.martin@gmail.com>2019-09-24 20:35:56 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-09-27 22:14:00 -0400
commit0201d0bf55cdca218a0eec89b8b9ccc55c0297d3 (patch)
treea5b7707d7e0451d44bc3191d50d6ad46303b7e48
parentf07862b483e8fb980d601d92148afe0979294ac8 (diff)
downloadhaskell-0201d0bf55cdca218a0eec89b8b9ccc55c0297d3.tar.gz
Clarify the purpose and status of the GHC.TypeLits module
-rw-r--r--libraries/base/GHC/TypeLits.hs12
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/base/GHC/TypeLits.hs b/libraries/base/GHC/TypeLits.hs
index 449fc20425..ce1eb1fcb3 100644
--- a/libraries/base/GHC/TypeLits.hs
+++ b/libraries/base/GHC/TypeLits.hs
@@ -13,9 +13,15 @@
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE PolyKinds #-}
-{-| This module is an internal GHC module. It declares the constants used
-in the implementation of type-level natural numbers. The programmer interface
-for working with type-level naturals should be defined in a separate library.
+{-| There are two kinds of data representable at the type level using
+GHC's @DataKinds@ extension to the Haskell language: natural numbers
+(the 'Nat' kind) and type-level strings (the 'Symbol' kind).
+
+For now, this module is the API for working with type-level literals.
+However, please note that it is a work in progress and is subject to change.
+Once the design of the @DataKinds@ feature is more stable, this will be
+considered only an internal GHC module, and the programmer interface for
+working with type-level data will be defined in a separate library.
@since 4.6.0.0
-}