[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 7 commits: Scrub various partiality involving lists (again).

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Oct 18 14:00:09 UTC 2022



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


Commits:
50fb66d9 by M Farkas-Dyck at 2022-10-18T09:59:31-04:00
Scrub various partiality involving lists (again).

Lets us avoid some use of `head` and `tail`, and some panics.

- - - - -
19212a85 by M Farkas-Dyck at 2022-10-18T09:59:36-04:00
Enforce invariant of `ListBag` constructor.

- - - - -
48c358bd by Bodigrim at 2022-10-18T09:59:38-04:00
More precise types for fields of OverlappingInstances and UnsafeOverlap in TcSolverReportMsg

It's clear from asserts in `GHC.Tc.Errors` that `overlappingInstances_matches`
and `unsafeOverlapped` are supposed to be non-empty, and `unsafeOverlap_matches`
contains a single instance, but these invariants are immediately lost afterwards
and not encoded in types. This patch enforces the invariants by pattern matching
and makes types more precise, avoiding asserts and partial functions such as `head`.

- - - - -
034810ca by sheaf at 2022-10-18T09:59:38-04:00
Rename unsafeOverlap_matches -> unsafeOverlap_match in UnsafeOverlap
- - - - -
be48fb18 by Matthew Pickering at 2022-10-18T09:59:39-04:00
Add SpliceTypes test for hie files

This test checks that typed splices and quotes get the right type
information when used in hiefiles.

See #21619

- - - - -
86ec9490 by Jan Hrček at 2022-10-18T09:59:43-04:00
Small language fixes in 'Using GHC'

- - - - -
4a7993bd by Gergő Érdi at 2022-10-18T09:59:49-04:00
Fix typo in `Opt_WriteIfSimplifiedCore`'s name

- - - - -


30 changed files:

- compiler/GHC/Cmm/Info/Build.hs
- compiler/GHC/CmmToAsm/BlockLayout.hs
- compiler/GHC/CmmToAsm/PPC/Instr.hs
- compiler/GHC/CmmToAsm/X86/CodeGen.hs
- compiler/GHC/Core/InstEnv.hs
- compiler/GHC/Core/Lint.hs
- compiler/GHC/Core/Opt/Monad.hs
- compiler/GHC/Core/Opt/OccurAnal.hs
- compiler/GHC/Core/Utils.hs
- compiler/GHC/Data/Bag.hs
- compiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Main.hs
- compiler/GHC/Driver/Session.hs
- compiler/GHC/Hs/Decls.hs
- compiler/GHC/Hs/Utils.hs
- compiler/GHC/HsToCore/Pmc/Solver/Types.hs
- compiler/GHC/HsToCore/Utils.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Iface/Make.hs
- compiler/GHC/Parser/PostProcess/Haddock.hs
- compiler/GHC/Rename/Names.hs
- compiler/GHC/Rename/Unbound.hs
- compiler/GHC/Runtime/Heap/Inspect.hs
- compiler/GHC/StgToByteCode.hs
- compiler/GHC/StgToCmm/Utils.hs
- compiler/GHC/Tc/Deriv.hs
- compiler/GHC/Tc/Deriv/Generate.hs
- compiler/GHC/Tc/Deriv/Generics.hs
- compiler/GHC/Tc/Errors.hs
- compiler/GHC/Tc/Errors/Ppr.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/3b868b61b15cc057b4b43aae6da3185539299750...4a7993bdd1ba514c67d769ee50a8b9a76f253c14

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/3b868b61b15cc057b4b43aae6da3185539299750...4a7993bdd1ba514c67d769ee50a8b9a76f253c14
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/20221018/a648aeca/attachment.html>


More information about the ghc-commits mailing list