summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T12478_4.stderr
diff options
context:
space:
mode:
authorAndrei Borzenkov <andreyborzenkov2002@gmail.com>2023-01-27 17:48:33 +0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-03-21 11:17:17 -0400
commita13affce1a6196ccff6c126112ab26823c85e727 (patch)
treef93cabe0d62bfe2c809437a885019bc92418a9c3 /testsuite/tests/th/T12478_4.stderr
parent73d07c6e1986bd2b3516d4f009cc1e30ba804f06 (diff)
downloadhaskell-a13affce1a6196ccff6c126112ab26823c85e727.tar.gz
Rename () into Unit, (,,...,,) into Tuple<n> (#21294)
This patch implements a part of GHC Proposal #475. The key change is in GHC.Tuple.Prim: - data () = () - data (a,b) = (a,b) - data (a,b,c) = (a,b,c) ... + data Unit = () + data Tuple2 a b = (a,b) + data Tuple3 a b c = (a,b,c) ... And the rest of the patch makes sure that Unit and Tuple<n> are pretty-printed as () and (,,...,,) in various contexts. Updates the haddock submodule. Co-authored-by: Vladislav Zavialov <vlad.z.4096@gmail.com>
Diffstat (limited to 'testsuite/tests/th/T12478_4.stderr')
-rw-r--r--testsuite/tests/th/T12478_4.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/th/T12478_4.stderr b/testsuite/tests/th/T12478_4.stderr
index 2f1b3f4e50..852b104cd5 100644
--- a/testsuite/tests/th/T12478_4.stderr
+++ b/testsuite/tests/th/T12478_4.stderr
@@ -2,5 +2,5 @@
T12478_4.hs:7:7: error: [GHC-97721]
• Illegal sum arity: 1
Sums must have an arity of at least 2
- When splicing a TH type: (# #) GHC.Tuple.Prim.()
+ When splicing a TH type: (# #) GHC.Tuple.Prim.Unit
• In the untyped splice: $(unboxedSumT 1 `appT` conT ''())