Skip to content

refactor(cabal-install-solver): remove workaround for bug closed years ago#11649

Merged
mergify[bot] merged 1 commit intohaskell:masterfrom
andreabedini:refactor/progress-derive-functor
Apr 29, 2026
Merged

refactor(cabal-install-solver): remove workaround for bug closed years ago#11649
mergify[bot] merged 1 commit intohaskell:masterfrom
andreabedini:refactor/progress-derive-functor

Conversation

@andreabedini
Copy link
Copy Markdown
Collaborator

Replace the manual Functor instance on Progress with deriving (Functor). The manual instance was a workaround
for a GHC 7.6.3 space leak (https://gitlab.haskell.org/ghc/ghc/-/issues/7436), which has long been fixed.

Copy link
Copy Markdown
Collaborator

@sebright sebright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like 8.0.2 is the earliest GHC that we're currently testing against in CI.

…s ago

Replace the manual `Functor` instance on `Progress` with `deriving (Functor)`.
The manual instance was a workaround for a GHC 7.6.3 space leak
(https://gitlab.haskell.org/ghc/ghc/-/issues/7436), which has long been fixed.
Copilot AI review requested due to automatic review settings April 7, 2026 03:19
@andreabedini andreabedini force-pushed the refactor/progress-derive-functor branch from e8900ab to fc3b2c8 Compare April 7, 2026 03:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes Distribution.Solver.Types.Progress by removing an obsolete GHC 7.6.3-era workaround and using the standard derived Functor instance instead, aligning the code with current compiler behavior.

Changes:

  • Added DeriveFunctor language pragma for the module.
  • Replaced the manual Functor (Progress step fail) instance with deriving (Functor) on Progress.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ulysses4ever ulysses4ever added the merge me Tell Mergify Bot to merge label Apr 26, 2026
@mergify mergify Bot added the ready and waiting Mergify is waiting out the cooldown period label Apr 26, 2026
@ulysses4ever
Copy link
Copy Markdown
Collaborator

I took the liberty to set the merge label on this PR. Hope this is Ok.

@mergify mergify Bot added merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days queued labels Apr 28, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 28, 2026

Merge Queue Status

This pull request spent 1 hour 59 minutes 34 seconds in the queue, including 1 hour 49 minutes 11 seconds running CI.

Required conditions to merge
  • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of [🛡 GitHub branch protection]:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of [🛡 GitHub branch protection]:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of [🛡 GitHub branch protection]:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of [🛡 GitHub branch protection]:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of [🛡 GitHub branch protection]:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of [🛡 GitHub branch protection]:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of [🛡 GitHub branch protection]:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

mergify Bot added a commit that referenced this pull request Apr 28, 2026
@mergify mergify Bot merged commit 5ac41c2 into haskell:master Apr 29, 2026
217 checks passed
@mergify mergify Bot removed the queued label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cabal-install: solver merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge ready and waiting Mergify is waiting out the cooldown period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants