This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1518 from bgamari/wip/ghc-9.4-merge
Merge GHC 9.4 into `main`
- Loading branch information
Showing
44 changed files
with
574 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,28 +36,32 @@ cd haddock | |
|
||
### Git Branches | ||
|
||
Pull requests are to be opened against the `main` branch, from which are forked | ||
GHC-specific branches (like `ghc-9.2`, `ghc-9.4`, etc). | ||
If your patch consists of glue code and interface changes with GHC, please | ||
open a Pull Request targeting the `ghc-head` branch. | ||
|
||
Otherwise, for improvements to the documentation generator, | ||
please base your pull request on the current GHC version branch | ||
(`ghc-9.0` for instance). The PR will be forward-ported to `ghc-head` | ||
so that documentation built within GHC can benefit from it. | ||
|
||
### Building the packages | ||
|
||
#### Using `cabal` | ||
|
||
First update the package list: | ||
Requires cabal `>= 3.4` and GHC `== 9.4`: | ||
|
||
You can install the latest build of GHC via ghcup using this command: | ||
|
||
```bash | ||
cabal v2-update | ||
ghcup install ghc -u "https://gitlab.haskell.org/ghc/ghc/-/jobs/artifacts/master/raw/ghc-x86_64-deb9-linux-integer-simple.tar.xz?job=validate-x86_64-linux-deb9-integer-simple" head | ||
``` | ||
|
||
This is needed as [email protected] uses the | ||
[ghc.head](https://ghc.gitlab.haskell.org/head.hackage/) package repository. | ||
|
||
```bash | ||
cabal v2-build all --enable-tests | ||
cabal v2-test all | ||
``` | ||
|
||
### Updating golden test suite outputs | ||
### Updating golden testsuite outputs | ||
|
||
If you've changed Haddock's output, you will probably need to accept the new | ||
output of Haddock's golden test suites (`html-test`, `latex-test`, | ||
|
@@ -69,5 +73,6 @@ cabal v2-test html-test latex-test hoogle-test hypsrc-test \ | |
--test-option='--accept' | ||
``` | ||
|
||
|
||
[SSCCE]: http://sscce.org/ | ||
[CoC]: ./CODE_OF_CONDUCT.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
with-compiler: ghc-9.2 | ||
with-compiler: ghc-9.4 | ||
|
||
packages: ./ | ||
./haddock-api | ||
./haddock-library | ||
./haddock-test | ||
|
||
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override | ||
with-compiler: ghc-9.4 | ||
|
||
repository head.hackage.ghc.haskell.org | ||
url: https://ghc.gitlab.haskell.org/head.hackage/ | ||
secure: True | ||
key-threshold: 3 | ||
root-keys: | ||
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89 | ||
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329 | ||
7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d | ||
allow-newer: | ||
ghc-paths:Cabal, | ||
*:base, | ||
*:ghc-prim, | ||
tree-diff:time | ||
|
||
package haddock-library | ||
tests: False | ||
|
||
package haddock-api | ||
tests: False | ||
|
||
-- Pinning the index-state helps to make reasonably CI deterministic | ||
index-state: 2022-08-05T20:43:48Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
cabal-version: 2.0 | ||
cabal-version: 3.0 | ||
name: haddock-api | ||
version: 2.26.1 | ||
version: 2.27.0 | ||
synopsis: A documentation-generation tool for Haskell libraries | ||
description: Haddock is a documentation-generation tool for Haskell | ||
libraries | ||
license: BSD2 | ||
license: BSD-2-Clause | ||
license-file: LICENSE | ||
author: Simon Marlow, David Waern | ||
maintainer: Alec Theriault <[email protected]>, Alex Biehl <[email protected]>, Simon Hengel <[email protected]>, Mateusz Kowalczyk <[email protected]> | ||
|
@@ -13,7 +13,7 @@ bug-reports: https://github.com/haskell/haddock/issues | |
copyright: (c) Simon Marlow, David Waern | ||
category: Documentation | ||
build-type: Simple | ||
tested-with: GHC==9.2.* | ||
tested-with: GHC==9.4.* | ||
|
||
extra-source-files: | ||
CHANGES.md | ||
|
@@ -44,9 +44,9 @@ library | |
|
||
-- this package typically supports only single major versions | ||
build-depends: base ^>= 4.16.0 | ||
, ghc ^>= 9.2 | ||
, ghc ^>= 9.4 | ||
, ghc-paths ^>= 0.1.0.9 | ||
, haddock-library ^>= 1.10.0 | ||
, haddock-library ^>= 1.11 | ||
, xhtml ^>= 3000.2.2 | ||
, parsec ^>= 3.1.13.0 | ||
|
||
|
@@ -180,9 +180,9 @@ test-suite spec | |
Haddock.Backends.Hyperlinker.Parser | ||
Haddock.Backends.Hyperlinker.Types | ||
|
||
build-depends: ghc ^>= 9.2 | ||
build-depends: ghc ^>= 9.4 | ||
, ghc-paths ^>= 0.1.0.12 | ||
, haddock-library ^>= 1.10.0 | ||
, haddock-library ^>= 1.11 | ||
, xhtml ^>= 3000.2.2 | ||
, hspec ^>= 2.9 | ||
, parsec ^>= 3.1.13.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.