Skip to content

test-qc: replace deprecated TypeInType pragma - #448

Merged
konsumlamm merged 1 commit into
haskell:masterfrom
gorban:fix/test-type-in-type
Sep 27, 2026
Merged

konsumlamm merged 1 commit into
haskell:masterfrom
gorban:fix/test-type-in-type

Conversation

@gorban

@gorban gorban commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Replace the deprecated TypeInType pragma in test/Main.hs with DataKinds and PolyKinds, as GHC recommends, retaining the existing CPP guard. Fixes #447.

Verified on Linux with GHC 9.14.1 against current master (2fdb2a9):

Check Before After
Existing test-qc suite with -Wall -Wcompat -Werror Compilation fails with GHC-53692: -XTypeInType is deprecated All 385 tests pass

The existing suite itself reproduces the problem; no new test harness or assertions are needed. This changes only test pragmas, with no library/API changes, dependency-bound changes, additional warning suppression or removed tests. Master's existing library warning allowances from #434 remain unchanged.

The comparison used Cabal 3.16.1.0, optimization level 2, the pinned dependency configuration in #447, and cabal test all --test-show-details=direct. The fresh build directory reused the earlier experiment's dependency store. Full commands, logs and plan are available on request.

Existing CI already builds and runs test-qc across its compiler matrix, including GHC 9.14. It does not currently enforce -Werror; the strict before/after check above was run locally. Older compilers and the other operating systems remain for CI verification after submission.

@konsumlamm
konsumlamm merged commit 688ca8a into haskell:master Sep 27, 2026
15 checks passed
@konsumlamm

Copy link
Copy Markdown
Contributor

Thanks!

Did you generate the PR description with an LLM? The table and everything after add no relevant information. For future contributions, I'd recommend leaving out such fluff.

@gorban

gorban commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

Sure, will keep it short and only add extra detail when asked. Thanks for looking at this.

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.

test-qc: replace deprecated TypeInType for GHC 9.14 strict builds

2 participants