-
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. 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 that are somehow related to these type family instances. I suspect a bug in Haddock rather than something we can fix. 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.
- Loading branch information
1 parent
aafdee7
commit 6b49557
Showing
10 changed files
with
32 additions
and
25 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 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,2 +1,5 @@ | ||
package * | ||
documentation: __CHECK_HADDOCK__ | ||
|
||
package clash-protocols | ||
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
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