[Git][ghc/ghc][wip/exception-context-prereqs] 17 commits: ghc-internal: Move modules into GHC.Internal.* namespace

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Sat Feb 24 19:38:34 UTC 2024



Ben Gamari pushed to branch wip/exception-context-prereqs at Glasgow Haskell Compiler / GHC


Commits:
52a44766 by Ben Gamari at 2024-02-24T11:26:51-05:00
ghc-internal: Move modules into GHC.Internal.* namespace

Bumps haddock submodule due to testsuite output changes.

- - - - -
79a92c10 by Ben Gamari at 2024-02-24T11:26:51-05:00
ghc-internal: Rewrite `@since ` to `@since base-`

These will be incrementally moved to the export sites in `base` where
possible.

- - - - -
31e590ce by Ben Gamari at 2024-02-24T11:26:51-05:00
base: Migrate Haddock `not-home` pragmas from `ghc-internal`

This ensures that we do not use `base` stub modules as declarations'
homes when not appropriate.

- - - - -
ffc82535 by Ben Gamari at 2024-02-24T11:26:51-05:00
base: Partially freeze exports of GHC.Base

Sadly there are still a few module reexports. However, at least we have
decoupled from the exports of `GHC.Internal.Base`.

- - - - -
5437eba3 by Ben Gamari at 2024-02-24T11:26:51-05:00
Move Haddock named chunks

- - - - -
17d2b505 by Ben Gamari at 2024-02-24T11:26:51-05:00
Drop GHC.Internal.Data.Int

- - - - -
624ebbb7 by Ben Gamari at 2024-02-24T11:26:51-05:00
compiler: Fix mention to `GHC....` modules in wasm desugaring

Really, these references should be via known-key names anyways. I have
fixed the proximate issue here but have opened #24472 to track the
additional needed refactoring.

- - - - -
c9d7e274 by Ben Gamari at 2024-02-24T11:26:51-05:00
Accept performance shifts from ghc-internal restructure

As expected, Haddock now does more work. Less expected is that some
other testcases actually get faster, presumably due to less interface
file loading. As well, the size_hello_artifact test regressed a bit when
debug information is enabled due to debug information for the new stub
symbols.

Metric Decrease:
    T12227
    T13056
Metric Increase:
    haddock.Cabal
    haddock.base
    MultiLayerModulesTH_OneShot
    size_hello_artifact

- - - - -
521296e2 by Ben Gamari at 2024-02-24T11:26:51-05:00
Expose GHC.Wasm.Prim from ghc-experimental

Previously this was only exposed from `ghc-internal` which violates our
agreement that users shall not rely on things exposed from that package.

Fixes #24479.

- - - - -
9d05e011 by Ben Gamari at 2024-02-24T14:38:25-05:00
compiler/tc: Small optimisation of evCallStack

Don't lookupIds unless we actually need them.

- - - - -
83253842 by Ben Gamari at 2024-02-24T14:38:25-05:00
compiler/tc: Use toException instead of SomeException

- - - - -
06e046da by Ben Gamari at 2024-02-24T14:38:25-05:00
base: Factor out errorBelch

This was useful when debugging

- - - - -
2b0ab2fa by Ben Gamari at 2024-02-24T14:38:25-05:00
base: Clean up imports of GHC.Stack.CloneStack

- - - - -
575610d3 by Ben Gamari at 2024-02-24T14:38:25-05:00
base: Move PrimMVar to GHC.Internal.MVar

- - - - -
3c8251eb by Ben Gamari at 2024-02-24T14:38:25-05:00
base: Move prettyCallStack to GHC.Internal.Stack

- - - - -
1492fb75 by Ben Gamari at 2024-02-24T14:38:25-05:00
base: Explicit dependency to workaround #24436

Currently `ghc -M` fails to account for `.hs-boot` files correctly,
leading to issues with cross-package one-shot builds failing. This
currently manifests in `GHC.Exception` due to the boot file for
`GHC.Internal.Stack`. Work around this by adding an explicit `import`,
ensuring that `GHC.Internal.Stack` is built before `GHC.Exception`.

See #24436.

- - - - -
0bdbcc61 by Ben Gamari at 2024-02-24T14:38:25-05:00
base: Use displayException in top-level exception handler

Happily this also allows us to eliminate a special case for Deadlock
exceptions.

Implements [CLC #198](https://github.com/haskell/core-libraries-committee/issues/198).

- - - - -


30 changed files:

- compiler/GHC/Builtin/Names.hs
- compiler/GHC/Builtin/Types.hs
- compiler/GHC/Builtin/Types/Literals.hs
- compiler/GHC/Core/Make.hs
- compiler/GHC/HsToCore/Foreign/Wasm.hs
- compiler/GHC/StgToJS/Linker/Linker.hs
- compiler/GHC/StgToJS/Linker/Utils.hs
- compiler/GHC/StgToJS/Prim.hs
- compiler/GHC/StgToJS/Rts/Rts.hs
- compiler/GHC/StgToJS/Types.hs
- compiler/GHC/Tc/Deriv/Generate.hs
- compiler/GHC/Tc/Errors/Hole.hs
- compiler/GHC/Tc/Gen/Splice.hs
- compiler/GHC/Tc/Solver.hs
- compiler/GHC/Tc/Types/EvTerm.hs
- compiler/GHC/Types/Name.hs
- compiler/GHC/Types/Name/Cache.hs
- docs/users_guide/wasm.rst
- ghc/GHCi/UI/Monad.hs
- libraries/base/base.cabal
- libraries/base/changelog.md
- libraries/base/src/Control/Applicative.hs
- + libraries/base/src/Control/Arrow.hs
- + libraries/base/src/Control/Category.hs
- libraries/base/src/Control/Concurrent.hs
- libraries/base/src/Control/Concurrent/Chan.hs
- + libraries/base/src/Control/Concurrent/MVar.hs
- libraries/base/src/Control/Concurrent/QSem.hs
- libraries/base/src/Control/Concurrent/QSemN.hs
- libraries/ghc-internal/src/Control/Exception.hs → libraries/base/src/Control/Exception.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/a429880b453643141d30367730aaf610c3590e45...0bdbcc616971633e26b817590046be379fcce6fb

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/a429880b453643141d30367730aaf610c3590e45...0bdbcc616971633e26b817590046be379fcce6fb
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/20240224/8961d9f4/attachment.html>


More information about the ghc-commits mailing list