Implement Response File support for HPC
This is an improvement to HPC authored by Richard Wallace (https://github.com/purefn) and myself. I have received permission from him to attempt to upstream it. This improvement was originally implemented as a patch to HPC via input-output-hk/haskell.nix: https://github.com/input-output-hk/haskell.nix/pull/1464 Paraphrasing Richard, HPC currently requires all inputs as command line arguments. With large projects this can result in an argument list too long error. I have only seen this error in Nix, but I assume it can occur is a plain Unix environment. This MR adds the standard response file syntax support to HPC. For example you can now pass a file to the command line which contains the arguments. ``` hpc @response_file_1 @response_file_2 ... The contents of a Response File must have this format: COMMAND ... example: report my_library.tix --include=ModuleA --include=ModuleB ``` Updates hpc submodule Co-authored-by:Richard Wallace <rwallace@thewallacepack.net> Fixes #22050
Showing
- HpcCombine.hs 0 additions, 1 deletionHpcCombine.hs
- HpcDraft.hs 0 additions, 1 deletionHpcDraft.hs
- HpcMarkup.hs 0 additions, 1 deletionHpcMarkup.hs
- HpcOverlay.hs 0 additions, 2 deletionsHpcOverlay.hs
- HpcReport.hs 0 additions, 2 deletionsHpcReport.hs
- HpcShowTix.hs 0 additions, 1 deletionHpcShowTix.hs
- Main.hs 85 additions, 8 deletionsMain.hs
Loading
Please register or sign in to comment