Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 9, 2025

Issue 1: In 3.14 there was a poor error when starting a repl in a project context without any targets. In 3.16, this error regressed, so cabal just exited cleanly.
Issue 2: The repl was broken when started from a global context.

Issue 1 is fixed by checking to see if there are any user targets, and issuing a proper error if there are none.

Issue 2 is fixed by specifying the correct fake target which is constructed when starting the repl in the global context.

Both are reported in #11107 and fixed in this patch.

Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:


This is an automatic backport of pull request #11237 done by [Mergify](https://mergify.com).

Issue 1: In 3.14 there was a poor error when starting a repl in a
project context without any targets. In 3.16, this error regressed, so
cabal just exited cleanly.
Issue 2: The repl was broken when started from a global context.

Issue 1 is fixed by checking to see if there are any user targets, and
issuing a proper error if there are none.

Issue 2 is fixed by specifying the correct fake target which is
constructed when starting the repl in the global context.

Both are reported in #11107 and fixed in this patch.

Co-authored-by: Matthew Pickering <[email protected]>
(cherry picked from commit 5e26932)
@mergify mergify bot mentioned this pull request Oct 9, 2025
6 tasks
@mergify mergify bot added the backport label Oct 9, 2025
@Mikolaj Mikolaj added the merge me Tell Mergify Bot to merge label Dec 4, 2025
@mergify
Copy link
Contributor Author

mergify bot commented Dec 4, 2025

Merge Queue Status

✅ The pull request has been merged

This pull request spent 1 hour 48 minutes 51 seconds in the queue, including 1 hour 45 minutes 31 seconds running CI.
The checks were run on draft #11319.

Required conditions to merge

@mergify mergify bot added the queued label Dec 4, 2025
mergify bot added a commit that referenced this pull request Dec 4, 2025
@mergify mergify bot merged commit 048b782 into 3.16 Dec 4, 2025
58 checks passed
@mergify mergify bot deleted the mergify/bp/3.16/pr-11237 branch December 4, 2025 20:24
@mergify mergify bot removed the queued label Dec 4, 2025
mergify bot added a commit that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants