summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-05-30 09:10:51 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2022-05-30 09:11:45 +0100
commit8e43e462613f48c72ebd837b9a9f1fa7eb4e331d (patch)
tree86cbc5389565c1d273b8ecbdba833fc119cf00df
parented37027f713bb6563fd98d144a39211339fd91a5 (diff)
downloadhaskell-wip/fix-syntax.tar.gz
Fix example for PromotedConsTwip/fix-syntax
The `(':)` was a bit misleading because it looks like a sectioned promoted operator. It's less confusing to just write `':` directly. Fixes #21675
-rw-r--r--libraries/template-haskell/Language/Haskell/TH/Syntax.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index 684771eb86..91c1c2a4d9 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -2764,7 +2764,7 @@ data Type = ForallT [TyVarBndr Specificity] Cxt Type -- ^ @forall \<vars\>. \<ct
| ListT -- ^ @[]@
| PromotedTupleT Int -- ^ @'(), '(,), '(,,), etc.@
| PromotedNilT -- ^ @'[]@
- | PromotedConsT -- ^ @(':)@
+ | PromotedConsT -- ^ @':@
| StarT -- ^ @*@
| ConstraintT -- ^ @Constraint@
| LitT TyLit -- ^ @0,1,2, etc.@