summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShlomo Shuck <stevenjshuck@gmail.com>2022-05-29 18:55:00 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-06-01 07:44:55 -0400
commite07f9059e90ed7f0dd48a21e653943e16aec30a6 (patch)
tree6db9e1696d058e8a22440230cc583e38d643f4b5
parenta12a3cab7a58549cb1965872da8d9c10402b962d (diff)
downloadhaskell-e07f9059e90ed7f0dd48a21e653943e16aec30a6.tar.gz
Language.Haskell.Syntax: Fix docs for PromotedConsT etc.
Fixes ghc/ghc#21675.
-rw-r--r--libraries/template-haskell/Language/Haskell/TH/Syntax.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index 684771eb86..df892fa2bd 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -2753,21 +2753,21 @@ data Type = ForallT [TyVarBndr Specificity] Cxt Type -- ^ @forall \<vars\>. \<ct
| ParensT Type -- ^ @(T)@
-- See Note [Representing concrete syntax in types]
- | TupleT Int -- ^ @(,), (,,), etc.@
- | UnboxedTupleT Int -- ^ @(\#,\#), (\#,,\#), etc.@
- | UnboxedSumT SumArity -- ^ @(\#|\#), (\#||\#), etc.@
+ | TupleT Int -- ^ @(,)@, @(,,)@, etc.
+ | UnboxedTupleT Int -- ^ @(\#,\#)@, @(\#,,\#)@, etc.
+ | UnboxedSumT SumArity -- ^ @(\#|\#)@, @(\#||\#)@, etc.
| ArrowT -- ^ @->@
| MulArrowT -- ^ @%n ->@
--
-- Generalised arrow type with multiplicity argument
| EqualityT -- ^ @~@
| ListT -- ^ @[]@
- | PromotedTupleT Int -- ^ @'(), '(,), '(,,), etc.@
+ | PromotedTupleT Int -- ^ @'()@, @'(,)@, @'(,,)@, etc.
| PromotedNilT -- ^ @'[]@
- | PromotedConsT -- ^ @(':)@
+ | PromotedConsT -- ^ @'(:)@
| StarT -- ^ @*@
| ConstraintT -- ^ @Constraint@
- | LitT TyLit -- ^ @0,1,2, etc.@
+ | LitT TyLit -- ^ @0@, @1@, @2@, etc.
| WildCardT -- ^ @_@
| ImplicitParamT String Type -- ^ @?x :: t@
deriving( Show, Eq, Ord, Data, Generic )