Hadrian: undeclared dependency between stage1:lib:terminfo and docs:haskeline
$ rm -rf _build && hadrian/build -j docs:haskeline
libraries/haskeline/System/Console/Haskeline/Backend/Terminfo.hs:10:1: error: [GHC-88719]
Could not load module ‘System.Console.Terminfo’.
Perhaps you haven't installed the "dyn" libraries for package ‘terminfo-0.4.1.6’?
Use -v to see a list of the files searched for.
|
10 | import System.Console.Terminfo
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Manually forcing stage1:lib:terminfo
target beforehand fixes the issue:
$ rm -rf _build && hadrian/build -j stage1:lib:terminfo && hadrian/build -j docs:haskeline
<skipped>
Build completed in 7.11s
I assume this has something to do with the fact that terminfo
is a dependency of exe:ghc-bin
but not a dependency of lib:ghc
.