diff options
author | Andrei Borzenkov <andreyborzenkov2002@gmail.com> | 2023-01-27 17:48:33 +0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-03-21 11:17:17 -0400 |
commit | a13affce1a6196ccff6c126112ab26823c85e727 (patch) | |
tree | f93cabe0d62bfe2c809437a885019bc92418a9c3 /testsuite/tests/ghci/scripts/T4175.stdout | |
parent | 73d07c6e1986bd2b3516d4f009cc1e30ba804f06 (diff) | |
download | haskell-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/ghci/scripts/T4175.stdout')
-rw-r--r-- | testsuite/tests/ghci/scripts/T4175.stdout | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/ghci/scripts/T4175.stdout b/testsuite/tests/ghci/scripts/T4175.stdout index 16b2ebc26a..c014d96b51 100644 --- a/testsuite/tests/ghci/scripts/T4175.stdout +++ b/testsuite/tests/ghci/scripts/T4175.stdout @@ -22,8 +22,8 @@ type family E a where E () = Bool E Int = String -- Defined at T4175.hs:25:1 -type () :: * -data () = () +type Unit :: * +data Unit = () -- Defined in ‘GHC.Tuple.Prim’ instance [safe] C () -- Defined at T4175.hs:22:10 instance Monoid () -- Defined in ‘GHC.Base’ |