[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 15 commits: Handle hs-boot files in -Wmissing-home-modules (#16551)

Marge Bot gitlab at gitlab.haskell.org
Wed May 29 08:55:10 UTC 2019



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


Commits:
5af5d976 by Krzysztof Gogolewski at 2019-05-29T08:54:46Z
Handle hs-boot files in -Wmissing-home-modules (#16551)

- - - - -
8d375fd3 by Alp Mestanogullari at 2019-05-29T08:54:48Z
testsuite: introduce 'static_stats' tests

They are a particular type of perf tests. This patch introduces a
'stats_files_dir' configuration field in the testsuite driver where all
haddock timing files (and possibly others in the future) are assumed to live.
We also change both the Make and Hadrian build systems to pass respectively
$(TOP)/testsuite/tests/perf/haddock/ and
<build root>/stage1/haddock-timing-files/ as the value of that new
configuration field, and to generate the timing files in those directories
in the first place while generating documentation with haddock.

This new test type can be seen as one dedicated to examining stats files that
are generated while building a GHC distribution. This also lets us get rid of
the 'extra_files' directives in the all.T entries for haddock.base,
haddock.Cabal and haddock.compiler.

- - - - -
eed03ff5 by P.C. Shyamshankar at 2019-05-29T08:54:50Z
Minor spelling fixes to users guide.

- - - - -
7b6676ed by Oleg Grenrus at 2019-05-29T08:54:52Z
Remove stale 8.2.1-notes

- - - - -
e53d70e9 by Oleg Grenrus at 2019-05-29T08:54:52Z
Fix some warnings in users_guide (incl #16640)

- short underline
- :ghc-flag:, not :ghc-flags:
- :since: have to be separate
- newline before code block
- workaround anchor generation so

    - pragma:SPECIALISE
    - pragma:SPECIALIZE-INLINE
    - pragma:SPECIALIZE-inline

  are different anchors, not all the same `pragma:SPECIALIZE`

- - - - -
25248e5e by Kevin Buhr at 2019-05-29T08:54:53Z
Add test for old issue displaying unboxed tuples in error messages (#502)

- - - - -
552d7947 by Krzysztof Gogolewski at 2019-05-29T08:54:53Z
In hole fits, don't show VTA for inferred variables (#16456)

We fetch the ArgFlag for every argument by using splitForAllVarBndrs
instead of splitForAllTys in unwrapTypeVars.

- - - - -
a12c146f by Krzysztof Gogolewski at 2019-05-29T08:54:54Z
Fix missing unboxed tuple RuntimeReps (#16565)

Unboxed tuples and sums take extra RuntimeRep arguments,
which must be manually passed in a few places.
This was not done in deSugar/Check.

This error was hidden because zipping functions in TyCoRep
ignored lists with mismatching length. This is now fixed;
the lengths are now checked by calling zipEqual.

As suggested in #16565, I moved checking for isTyVar and
isCoVar to zipTyEnv and zipCoEnv.

- - - - -
9aac13c4 by Nathan Collins at 2019-05-29T08:54:55Z
Don't lose parentheses in show SomeAsyncException
- - - - -
fbefea7c by Daniel Gröber at 2019-05-29T08:54:56Z
Add hPutStringBuffer utility

- - - - -
ba987603 by Daniel Gröber at 2019-05-29T08:54:56Z
Allow using tagetContents for modules needing preprocessing

This allows GHC API clients, most notably tooling such as
Haskell-IDE-Engine, to pass unsaved files to GHC more easily.

Currently when targetContents is used but the module requires preprocessing
'preprocessFile' simply throws an error because the pipeline does not
support passing a buffer.

This change extends `runPipeline` to allow passing the input buffer into
the pipeline. Before proceeding with the actual pipeline loop the input
buffer is immediately written out to a new tempfile.

I briefly considered refactoring the pipeline at large to pass around
in-memory buffers instead of files, but this seems needlessly complicated
since no pipeline stages other than Hsc could really support this at the
moment.

- - - - -
e4877353 by Daniel Gröber at 2019-05-29T08:54:56Z
downsweep: Allow TargetFile not to exist when a buffer is given

Currently 'getRootSummary' will fail with an exception if a 'TargetFile' is
given but it does not exist even if an input buffer is passed along for
this target.

In this case it is not necessary for the file to exist since the buffer
will be used as input for the compilation pipeline instead of the file
anyways.

- - - - -
8e88a65a by Ömer Sinan Ağacan at 2019-05-29T08:55:00Z
CNF.c: Move debug functions behind ifdef

- - - - -
ac553226 by Vladislav Zavialov at 2019-05-29T08:55:00Z
tcMatchesFun s/rho/sigma #16692

- - - - -
4723e249 by Josh Meredith at 2019-05-29T08:55:01Z
Provide details in `plusSimplCount` errors

- - - - -


30 changed files:

- compiler/deSugar/Check.hs
- compiler/main/DriverPipeline.hs
- compiler/main/GhcMake.hs
- compiler/main/HscTypes.hs
- compiler/simplCore/CoreMonad.hs
- compiler/typecheck/TcHoleErrors.hs
- compiler/typecheck/TcMatches.hs
- compiler/typecheck/TcMatches.hs-boot
- compiler/types/TyCoRep.hs
- compiler/types/TyCon.hs
- compiler/utils/StringBuffer.hs
- compiler/utils/Util.hs
- docs/users_guide/8.10.1-notes.rst
- − docs/users_guide/8.2.1-notes.rst
- docs/users_guide/bugs.rst
- docs/users_guide/conf.py
- docs/users_guide/debug-info.rst
- docs/users_guide/editing-guide.rst
- docs/users_guide/ghci.rst
- docs/users_guide/glasgow_exts.rst
- docs/users_guide/phases.rst
- docs/users_guide/separate_compilation.rst
- docs/users_guide/using-optimisation.rst
- docs/users_guide/using-warnings.rst
- hadrian/src/Context.hs
- hadrian/src/Context/Path.hs
- hadrian/src/Rules/Documentation.hs
- hadrian/src/Settings/Builders/Haddock.hs
- hadrian/src/Settings/Builders/RunTest.hs
- libraries/base/GHC/IO/Exception.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/compare/0063a7852b74c1b73f3f2f2bf34cdd1c7be337b0...4723e2499830bee0efbf356ff59d6774d9c812db

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/compare/0063a7852b74c1b73f3f2f2bf34cdd1c7be337b0...4723e2499830bee0efbf356ff59d6774d9c812db
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/20190529/17747b9f/attachment-0001.html>


More information about the ghc-commits mailing list