[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 10 commits: PmCheck: Print types of uncovered patterns (#18932)

Marge Bot gitlab at gitlab.haskell.org
Thu Nov 19 05:10:00 UTC 2020



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


Commits:
8150f654 by Sebastian Graf at 2020-11-18T23:38:40-05:00
PmCheck: Print types of uncovered patterns (#18932)

In order to avoid confusion as in #18932, we display the type of the
match variables in the non-exhaustiveness warning, e.g.

```
T18932.hs:14:1: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘g’:
        Patterns of type  ‘T a’, ‘T a’, ‘T a’ not matched:
            (MkT2 _) (MkT1 _) (MkT1 _)
            (MkT2 _) (MkT1 _) (MkT2 _)
            (MkT2 _) (MkT2 _) (MkT1 _)
            (MkT2 _) (MkT2 _) (MkT2 _)
            ...
   |
14 | g (MkT1 x) (MkT1 _) (MkT1 _) = x
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

It also allows us to omit the type signature on wildcard matches which
we previously showed in only some situations, particularly
`-XEmptyCase`.

Fixes #18932.

- - - - -
b7983199 by Ben Gamari at 2020-11-19T00:09:33-05:00
users-guide: A bit of clean-up in profiling flag documentation

- - - - -
df1333d7 by Ben Gamari at 2020-11-19T00:09:33-05:00
testsuite: Refactor CountParserDeps

- - - - -
b5da7539 by Ben Gamari at 2020-11-19T00:09:33-05:00
Introduce -fprof-callers flag

This introducing a new compiler flag to provide a convenient way to
introduce profiler cost-centers on all occurrences of the named
identifier.

Closes #18566.

- - - - -
df139c62 by Krzysztof Gogolewski at 2020-11-19T00:09:40-05:00
Export indexError from GHC.Ix (#18579)

- - - - -
07824cbe by Sylvain Henry at 2020-11-19T00:09:42-05:00
Move Plugins into HscEnv (#17957)

Loaded plugins have nothing to do in DynFlags so this patch moves them
into HscEnv (session state).

"DynFlags plugins" become "Driver plugins" to still be able to register
static plugins.

Bump haddock submodule

- - - - -
75f9f03a by Sylvain Henry at 2020-11-19T00:09:42-05:00
Don't initialize plugins in the Core2Core pipeline

Some plugins can be added via TH (cf addCorePlugin). Initialize them in
the driver instead of in the Core2Core pipeline.

- - - - -
03b4c107 by Greg Steuck at 2020-11-19T00:09:45-05:00
Find hadrian location more reliably in cabal-install output

Fix #18944

- - - - -
45244ac3 by Ben Gamari at 2020-11-19T00:09:46-05:00
gitlab-ci: Add usage message to ci.sh

- - - - -
ded01ab9 by Ben Gamari at 2020-11-19T00:09:46-05:00
gitlab-ci: Add VERBOSE environment variable

And change the make build system's default behavior to V=0, greatly
reducing build log sizes.

- - - - -


30 changed files:

- .gitlab/ci.sh
- compiler/GHC.hs
- compiler/GHC/Core/Lint.hs
- + compiler/GHC/Core/Opt/CallerCC.hs
- + compiler/GHC/Core/Opt/CallerCC.hs-boot
- compiler/GHC/Core/Opt/Monad.hs
- compiler/GHC/Core/Opt/Pipeline.hs
- compiler/GHC/Driver/Env.hs
- compiler/GHC/Driver/Main.hs
- compiler/GHC/Driver/Monad.hs
- compiler/GHC/Driver/Pipeline.hs
- compiler/GHC/Driver/Pipeline/Monad.hs
- compiler/GHC/Driver/Plugins.hs
- compiler/GHC/Driver/Session.hs
- compiler/GHC/HsToCore.hs
- compiler/GHC/HsToCore/Pmc.hs
- compiler/GHC/HsToCore/Pmc/Ppr.hs
- compiler/GHC/Iface/Load.hs
- compiler/GHC/Iface/Make.hs
- compiler/GHC/Iface/Recomp.hs
- compiler/GHC/Iface/Recomp/Flags.hs
- compiler/GHC/Runtime/Context.hs
- compiler/GHC/Runtime/Eval.hs
- compiler/GHC/Runtime/Loader.hs
- compiler/GHC/Tc/Gen/Splice.hs
- compiler/GHC/Tc/Module.hs
- compiler/ghc.cabal.in
- docs/users_guide/9.2.1-notes.rst
- docs/users_guide/extending_ghc.rst
- docs/users_guide/profiling.rst


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/e4a82ad18c8b00d7f49660246ea8f69339a9db94...ded01ab9bb90d712a8825ad0c25937963d475272

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/e4a82ad18c8b00d7f49660246ea8f69339a9db94...ded01ab9bb90d712a8825ad0c25937963d475272
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/20201119/a4a1afeb/attachment.html>


More information about the ghc-commits mailing list