Skip to content

Remove compatibility code for GHC < 8#285

Open
sjakobi wants to merge 1 commit intomasterfrom
drop-ghc-7-compat
Open

Remove compatibility code for GHC < 8#285
sjakobi wants to merge 1 commit intomasterfrom
drop-ghc-7-compat

Conversation

@sjakobi
Copy link
Copy Markdown
Collaborator

@sjakobi sjakobi commented Apr 14, 2026

Follow-up to 92cc704 (drop GHC 7 support). Remove code that was only
needed for GHC versions older than 8:

- Remove CPP macros always true with base >= 4.9:
  APPLICATIVE_MONAD, FUNCTOR_IDENTITY_IN_BASE, MONOID_IN_PRELUDE,
  NATURAL_IN_BASE, SEMIGROUP_IN_BASE

- Remove conditional dependencies on semigroups, fail, void, ghc-prim

- Always enable -Wcompat (was conditional on GHC >= 8.0)

- Remove doctest buildability conditions for GHC < 7.10

- Remove unused Control.Applicative imports (in Prelude since base 4.8)

Assisted-by: GLM-5 <noreply@fireworks.ai>

@sjakobi sjakobi force-pushed the drop-ghc-7-compat branch 3 times, most recently from 565de18 to 2dfd48e Compare April 14, 2026 12:15
Follow-up to 92cc704 (drop GHC 7 support). Remove code that was only
needed for GHC versions older than 8:

- Remove CPP macros always true with base >= 4.9:
  APPLICATIVE_MONAD, FUNCTOR_IDENTITY_IN_BASE, MONOID_IN_PRELUDE,
  NATURAL_IN_BASE, SEMIGROUP_IN_BASE

- Remove conditional dependencies on semigroups, fail, void, ghc-prim

- Always enable -Wcompat (was conditional on GHC >= 8.0)

- Remove doctest buildability conditions for GHC < 7.10

- Remove unused Control.Applicative imports (in Prelude since base 4.8)

Assisted-by: GLM-5 <noreply@fireworks.ai>
@sjakobi sjakobi force-pushed the drop-ghc-7-compat branch from 2dfd48e to 05bc7a7 Compare April 14, 2026 12:28
@sjakobi sjakobi marked this pull request as ready for review April 14, 2026 12:30
@sjakobi sjakobi requested a review from a-02 April 14, 2026 12:31
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.

1 participant