Skip to content

test-qc: replace deprecated TypeInType pragma - #448

Open
gorban wants to merge 1 commit into
haskell:masterfrom
gorban:fix/test-type-in-type
Open

test-qc: replace deprecated TypeInType pragma#448
gorban wants to merge 1 commit into
haskell:masterfrom
gorban:fix/test-type-in-type

Conversation

@gorban

@gorban gorban commented Sep 13, 2026

Copy link
Copy Markdown

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.

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

1 participant