rules_haskell
rules_haskell copied to clipboard
Building the most straightforward tests with GHC Bindist compiled with Hadrian
This is using a locally built bindist using Hadrian.
This is currently passing 153 of the 206 tests when running bazel test //... --keep_going
.
The main identified issues for failing tests are:
- The issue with Cabal dependency calling undeclared
splitFileName
andminusFileName
as described in #1832 - The Hadrian bindist does not distribute a
ghci
binary. As far as I understood, this should be moved toghc --interactive
to pass tests related to REPL. - Some header files not found like "ghcplatform.h".
- Some type interfaces changed between GHC 8.10.7 and 9.2.5
Might be worth putting the generated bindist somewhere on the internet, to avoid reference to my local file system.
Made some progress:
- use the official GHC 9.6.1 bindist as this is built with Hadrian
- fixed a few build problems, so now the
./tests/run-start-script.sh --use-bindists
works on CI