Skip to content

Add support for GHC 9.4.2 under stack and fix #6128 - #6216

Merged
andreasabel merged 2 commits into
masterfrom
stack-9.4.2
Oct 23, 2022
Merged

andreasabel merged 2 commits into
masterfrom
stack-9.4.2

Conversation

@andreasabel

@andreasabel andreasabel commented Oct 22, 2022 •

Copy link
Copy Markdown
Member

Adds stack-9.4.2.yaml (generated from the output of cabal freeze).

Also fixes

a regression introduced by #6110 which speeds up generation of the builtin .agdai files during the setup process.
The problem was that the output from Agda wasn't consumed, so the pipe blocked, and setup stalled.
The solution is to use readCreateProcess which takes care of subtleties of capturing the output of a process in a non-blocking way. (We want to ignore the output of agda --interaction here, as it is only emacs commands.)

@andreasabel andreasabel added ux: installation Getting Agda set up on your machine infra: github workflows Issues related to GitHub workflows and actions (not in changelog) stack Concerning building with stack labels Oct 22, 2022
@andreasabel andreasabel added this to the 2.6.3 milestone Oct 22, 2022
@andreasabel
andreasabel force-pushed the stack-9.4.2 branch 3 times, most recently from 1c0d37c to c4b5b2e Compare October 23, 2022 15:06
@andreasabel andreasabel changed the title Add support for GHC 9.4.2 under stack Add support for GHC 9.4.2 under stack and fix #6128 Oct 23, 2022
@andreasabel andreasabel linked an issue Oct 23, 2022 that may be closed by this pull request
@andreasabel andreasabel self-assigned this Oct 23, 2022
@andreasabel
andreasabel requested a review from nad October 23, 2022 16:57
Comment thread Setup.hs Resolved
Regression introduced by #6110.

The output of the created Agda process was never read,
resulting in a blocked pipe when the buffer was full.

Using the simpler `readCreateProcess` takes care of
the correct pipe handling for us.
@andreasabel
andreasabel merged commit 54ecb4f into master Oct 23, 2022
@andreasabel
andreasabel deleted the stack-9.4.2 branch October 23, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra: github workflows Issues related to GitHub workflows and actions (not in changelog) stack Concerning building with stack ux: installation Getting Agda set up on your machine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack CI times out for Windows

2 participants