[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 8 commits: Rename () into Unit, (,,...,,) into Tuple<n> (#21294)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Mar 21 12:37:11 UTC 2023



Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC


Commits:
c9af5c17 by Andrei Borzenkov at 2023-03-21T08:36:49-04:00
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 at gmail.com>

- - - - -
4d053fea by Adam Sandberg Ericsson at 2023-03-21T08:36:49-04:00
docs: fix some wrongs in the eventlog format documentation

- - - - -
c6f4b833 by Adam Sandberg Ericsson at 2023-03-21T08:36:49-04:00
docs: explain the BLOCK_MARKER event

- - - - -
f62c8351 by Adam Sandberg Ericsson at 2023-03-21T08:36:49-04:00
docs: add BlockedOnMVarRead thread status in eventlog encodings

- - - - -
d8e58ab6 by Adam Sandberg Ericsson at 2023-03-21T08:36:49-04:00
docs: add TASK_DELETE event in eventlog encodings

- - - - -
addc667b by Adam Sandberg Ericsson at 2023-03-21T08:36:49-04:00
docs: add WALL_CLOCK_TIME event in eventlog encodings

- - - - -
91f94ff7 by Torsten Schmits at 2023-03-21T08:37:01-04:00
Add structured error messages for GHC.Tc.Utils.Env

Tracking ticket: #20119

MR: !10129

This converts uses of `mkTcRnUnknownMessage` to newly added constructors
of `TcRnMessage`.

- - - - -
53b92fe1 by Bodigrim at 2023-03-21T08:37:06-04:00
Document pdep / pext primops

- - - - -


30 changed files:

- compiler/GHC/Builtin/Names.hs
- compiler/GHC/Builtin/Types.hs
- compiler/GHC/Builtin/Uniques.hs
- compiler/GHC/Builtin/primops.txt.pp
- compiler/GHC/Core/InstEnv.hs
- compiler/GHC/Rename/Splice.hs
- compiler/GHC/Rename/Utils.hs
- compiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Tc/Instance/Class.hs
- compiler/GHC/Tc/Solver/Interact.hs
- compiler/GHC/Tc/Solver/Monad.hs
- compiler/GHC/Tc/Types.hs-boot
- compiler/GHC/Tc/Types/Origin.hs
- compiler/GHC/Tc/Utils/Env.hs
- compiler/GHC/Tc/Validity.hs
- compiler/GHC/Types/Error/Codes.hs
- compiler/GHC/Types/Name.hs
- compiler/GHC/Types/Name/Cache.hs
- compiler/GHC/Types/Name/Ppr.hs
- docs/users_guide/eventlog-formats.rst
- libraries/base/Data/Typeable/Internal.hs
- libraries/ghc-prim/GHC/Tuple.hs
- libraries/ghc-prim/GHC/Tuple/Prim.hs
- testsuite/tests/annotations/should_fail/annfail03.stderr
- testsuite/tests/annotations/should_fail/annfail04.stderr
- testsuite/tests/annotations/should_fail/annfail06.stderr
- testsuite/tests/annotations/should_fail/annfail09.stderr
- testsuite/tests/ghc-api/T18522-dbg-ppr.stdout


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7ec96ca06671b1a3fc3765616f4de067216f22c2...53b92fe1e1a2ab4839673811aad9309c078e8cef

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7ec96ca06671b1a3fc3765616f4de067216f22c2...53b92fe1e1a2ab4839673811aad9309c078e8cef
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230321/48db9875/attachment.html>


More information about the ghc-commits mailing list