Draft: Hadrian: Add option to generate .hie files for stage1 libraries
Setting ghcHieFiles = True
turns on -fwrite-ide-info
which generates .hie
files for all Haskell files
built in stage2.
It is necessary to distribute .hie
files for base libraries as you need to build a .hie
file with the same version of the compiler as you use to read it. Therefore, for a release, these files will be generated with the release compiler. You can't rebuild most base libraries yourself in order to generate these files.
I am not sure this is the best approach -- .hie
files are a bit like documentation but adding the option directly to the invocation of ghc
was the easiest option.
TODO: In the bindist rule we should perhaps gather up all the .hie
files and place them into their own directory.
cc @wz1000
Edited by Andreas Klebinger