Skip to content

Support GHC response files - #470

Merged
sol merged 1 commit into
mainfrom
response-files
Jun 24, 2025
Merged

sol merged 1 commit into
mainfrom
response-files

Conversation

@sol

@sol sol commented Jun 24, 2025

Copy link
Copy Markdown
Owner

No description provided.

@sol
sol force-pushed the response-files branch 2 times, most recently from a0c3f82 to 4049d8c Compare June 24, 2025 01:36
@sol
sol force-pushed the response-files branch from 4049d8c to 2fde269 Compare June 24, 2025 01:37
@sol

sol commented Jun 24, 2025

Copy link
Copy Markdown
Owner Author

@mpickering I guess this is all that's needed for response file support.

@sol
sol merged commit 34d417f into main Jun 24, 2025
@sol
sol deleted the response-files branch June 24, 2025 02:05
@mpickering

mpickering commented Jun 24, 2025 •

Copy link
Copy Markdown

@sol

sol commented Jun 24, 2025

Copy link
Copy Markdown
Owner Author

That's interesting. expandResponse apparently does some unescaping 🤔. I somehow assumed that response files put one argument on each line precisely so that you don't need to worry about escaping. But apparently that's not the case.

#471 fixes this.

@mpickering thanks for pointing this out.

@sol

sol commented Jun 24, 2025 •

Copy link
Copy Markdown
Owner Author

@mpickering just to doublecheck, is my reasoning correct that lines is not sufficient for consuming the response files produced by GHC?

expandResponse is available since base-4.12.*. If I'm gonna use this I will have to drop support for GHC < 8.6.

@mpickering

Copy link
Copy Markdown

@sol Only ghc >= 9.4.1 supports response files, is that helpful?

Otherwise, I can only comment that it would make a lot of sense to use the same function that GHC uses for escaping a response file, just for the interest of compatibility!

@sol

sol commented Jun 24, 2025

Copy link
Copy Markdown
Owner Author

@sol Only ghc >= 9.4.1 supports response files, is that helpful?

Yes, it is. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants