Skip to content

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

Open
andreabedini wants to merge 1 commit intohaskell:masterfrom
andreabedini:refactor/progress-derive-functor
Open

refactor(cabal-install-solver): remove workaround for bug closed years ago#11649
andreabedini wants to merge 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants