-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHC 9.8 and 9.10 give a lot of Haddock warnings. We used to check the Haddock for all GHC versions, but this is overkill. Just check it on GHC 9.6 only. We used to first invoke `cabal build` and then `cabal build --enable-documentation`. But this rebuilds all dependencies, effectively doubling running time. The `allow-newer` on `circuit-notation` is superfluous. Further details: Haddock for GHC 9.8 and up generate more information about type family instances. However, this also leads to "could not find link destinations for" warnings. Given an `instance C A`, it would seem that when it lists the instance under the Haddock of the definition of `C`, it tries to create a link to the listing of the instance under the Haddock of the definition of `A`, and fails somehow. I suspect a bug in Haddock rather than something we can fix.
- Loading branch information
1 parent
2f33cf2
commit 94e6c31
Showing
10 changed files
with
36 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$check_haddock" != @(True|False) ]]; then | ||
echo "check_haddock: Expected True or False, got \"$check_haddock\"" >&2 | ||
exit 1 | ||
fi | ||
sed <.ci/cabal.project.local.in >cabal.project.local " | ||
s/__CHECK_HADDOCK__/$check_haddock/" |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package * | ||
documentation: __CHECK_HADDOCK__ | ||
|
||
package clash-protocols | ||
documentation: False | ||
ghc-options: -Werror |
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,7 +1,6 @@ | ||
#!/bin/bash | ||
set -xeou pipefail | ||
|
||
cabal v2-build all --constraint=clash-prelude==$clash_version -fci | ||
cabal v2-run unittests --constraint=clash-prelude==$clash_version -fci --enable-tests | ||
cabal v2-run doctests --constraint=clash-prelude==$clash_version -fci --enable-tests | ||
cabal v2-sdist clash-protocols |
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
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