[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 6 commits: Give better errors for code corrupted by Unicode smart quotes (#21843)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Nov 19 05:22:11 UTC 2022



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


Commits:
d23f89ba by Lawton Nichols at 2022-11-19T00:22:04-05:00
Give better errors for code corrupted by Unicode smart quotes (#21843)

Previously, we emitted a generic and potentially confusing error during lexical
analysis on programs containing smart quotes (“/”/‘/’). This commit adds
smart quote-aware lexer errors.

- - - - -
29b1e95a by Sebastian Graf at 2022-11-19T00:22:04-05:00
Make OpaqueNo* tests less noisy to unrelated changes

- - - - -
e503cc4a by Sebastian Graf at 2022-11-19T00:22:04-05:00
Simplifier: Consider `seq` as a `BoringCtxt` (#22317)

See `Note [Seq is boring]` for the rationale.

Fixes #22317.

- - - - -
329a689a by Sebastian Graf at 2022-11-19T00:22:04-05:00
Make T21839c's ghc/max threshold more forgiving

- - - - -
38dfab38 by Simon Peyton Jones at 2022-11-19T00:22:05-05:00
Be more careful when reporting unbound RULE binders

See Note [Variables unbound on the LHS] in GHC.HsToCore.Binds.

Fixes #22471.

- - - - -
241cb77c by Peter Trommler at 2022-11-19T00:22:05-05:00
PPC NCG: Fix generating assembler code

Fixes #22479

- - - - -


30 changed files:

- compiler/GHC/CmmToAsm/PPC/Ppr.hs
- compiler/GHC/Core/FVs.hs
- compiler/GHC/Core/Opt/Simplify/Utils.hs
- compiler/GHC/Core/Subst.hs
- compiler/GHC/Core/Unfold.hs
- compiler/GHC/HsToCore.hs
- compiler/GHC/HsToCore/Binds.hs
- compiler/GHC/Parser/Errors/Ppr.hs
- compiler/GHC/Parser/Errors/Types.hs
- compiler/GHC/Parser/Lexer.x
- compiler/GHC/Tc/Gen/Rule.hs
- compiler/GHC/Types/Error/Codes.hs
- + testsuite/tests/parser/should_fail/T21843a.hs
- + testsuite/tests/parser/should_fail/T21843a.stderr
- + testsuite/tests/parser/should_fail/T21843b.hs
- + testsuite/tests/parser/should_fail/T21843b.stderr
- + testsuite/tests/parser/should_fail/T21843c.hs
- + testsuite/tests/parser/should_fail/T21843c.stderr
- + testsuite/tests/parser/should_fail/T21843d.hs
- + testsuite/tests/parser/should_fail/T21843d.stderr
- + testsuite/tests/parser/should_fail/T21843e.hs
- + testsuite/tests/parser/should_fail/T21843e.stderr
- + testsuite/tests/parser/should_fail/T21843f.hs
- + testsuite/tests/parser/should_fail/T21843f.stderr
- testsuite/tests/parser/should_fail/all.T
- testsuite/tests/perf/compiler/all.T
- + testsuite/tests/simplCore/should_compile/T22317.hs
- + testsuite/tests/simplCore/should_compile/T22317.stderr
- testsuite/tests/simplCore/should_compile/T22375.stderr
- + testsuite/tests/simplCore/should_compile/T22471.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/65309c477ee47113a972c1bc24dfeeacf3d00732...241cb77c42a3b68749a1eba8895210edeefdb024

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/65309c477ee47113a972c1bc24dfeeacf3d00732...241cb77c42a3b68749a1eba8895210edeefdb024
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/20221119/130867e5/attachment-0001.html>


More information about the ghc-commits mailing list