From a13affce1a6196ccff6c126112ab26823c85e727 Mon Sep 17 00:00:00 2001 From: Andrei Borzenkov Date: Fri, 27 Jan 2023 17:48:33 +0400 Subject: Rename () into Unit, (,,...,,) into Tuple (#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 are pretty-printed as () and (,,...,,) in various contexts. Updates the haddock submodule. Co-authored-by: Vladislav Zavialov --- utils/haddock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/haddock b/utils/haddock index 519a95998b..1f22a95c1d 160000 --- a/utils/haddock +++ b/utils/haddock @@ -1 +1 @@ -Subproject commit 519a95998b09a2c9c7a42c3a0cf2ca0c4358bb49 +Subproject commit 1f22a95c1db942fce2623b9daa26f66d193a4e7f -- cgit v1.2.1