[Git][ghc/ghc][wip/ghc-internals-3] 10 commits: Define GHC2024 language edition (#24320)

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Fri Feb 23 14:57:55 UTC 2024



Ben Gamari pushed to branch wip/ghc-internals-3 at Glasgow Haskell Compiler / GHC


Commits:
09941666 by Adam Gundry at 2024-02-21T13:53:12+00:00
Define GHC2024 language edition (#24320)

See https://github.com/ghc-proposals/ghc-proposals/pull/613. Also
fixes #24343 and improves the documentation of language editions.

Co-authored-by: Joachim Breitner <mail at joachim-breitner.de>

- - - - -
5121a4ed by Ben Gamari at 2024-02-23T06:40:55-05:00
Allow docstrings after exports

Here we extend the parser and AST to preserve docstrings following
export items. We then extend Haddock to parse `@since` annotations in
such docstrings, allowing changes in export structure to be properly
documented.

Bumps haddock submodule.

- - - - -
353d3a9e by Hécate Moonlight at 2024-02-23T09:20:04-05:00
Improve the synopsis and description of base

- - - - -
319744e1 by Ben Gamari at 2024-02-23T09:20:05-05:00
Allow docstrings after exports

Here we extend the parser and AST to preserve docstrings following
export items. We then extend Haddock to parse `@since` annotations in
such docstrings, allowing changes in export structure to be properly
documented.

- - - - -
0f96768f by Ben Gamari at 2024-02-23T09:57:45-05:00
ghc-internal: Move modules into GHC.Internal.* namespace

- - - - -
5e79c747 by Ben Gamari at 2024-02-23T09:57:45-05:00
ghc-internal: Rewrite `@since ` to `@since base-`

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

- - - - -
b3518738 by Ben Gamari at 2024-02-23T09:57:45-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.

- - - - -
1354d68a by Ben Gamari at 2024-02-23T09:57:45-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`.

- - - - -
6ea5d37b by Ben Gamari at 2024-02-23T09:57:45-05:00
Move Haddock named chunks

- - - - -
6b2be807 by Ben Gamari at 2024-02-23T09:57:45-05:00
Drop GHC.Internal.Data.Int

- - - - -


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/Driver/DynFlags.hs
- compiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs
- compiler/GHC/Hs/Doc.hs
- compiler/GHC/Hs/ImpExp.hs
- compiler/GHC/HsToCore/Docs.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Parser/PostProcess/Haddock.hs
- compiler/GHC/Rename/Names.hs
- compiler/GHC/Tc/Deriv/Generate.hs
- compiler/GHC/Tc/Errors/Hole.hs
- compiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Gen/Export.hs
- compiler/GHC/Tc/Solver.hs
- compiler/GHC/Types/Name.hs
- compiler/GHC/Types/Name/Cache.hs
- compiler/Language/Haskell/Syntax/ImpExp.hs
- docs/users_guide/9.10.1-notes.rst
- docs/users_guide/exts/binary_literals.rst
- docs/users_guide/exts/constrained_class_methods.rst
- docs/users_guide/exts/constraint_kind.rst
- docs/users_guide/exts/control.rst
- docs/users_guide/exts/data_kinds.rst
- docs/users_guide/exts/deriving_extra.rst


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/08e274c2a7b5cd79b8feaa1db3b0f4a1a8e9739f...6b2be807fb33bacec3c5e73b8dc3a9ce2a3f4da9

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/08e274c2a7b5cd79b8feaa1db3b0f4a1a8e9739f...6b2be807fb33bacec3c5e73b8dc3a9ce2a3f4da9
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/20240223/4b01ad32/attachment.html>


More information about the ghc-commits mailing list