Skip to content

test: fix two GHC warnings in optimizer/CPR specs - #289

Merged
Unisay merged 1 commit into
mainfrom
chore/fix-optimizer-cpr-spec-warnings
Jul 23, 2026
Merged

test: fix two GHC warnings in optimizer/CPR specs#289
Unisay merged 1 commit into
mainfrom
chore/fix-optimizer-cpr-spec-warnings

Conversation

@Unisay

@Unisay Unisay commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Follow-up spotted while working on #288: tricorder's GHCi session surfaces two warnings that cabal's flag set doesn't (so CI stayed green), but they're worth fixing anyway per the project's no-tolerated-warnings policy.

What

  • test/Language/PureScript/Backend/IR/Cpr/Spec.hs: removes the qualified Data.Text import, unused since some earlier edit.
  • test/Language/PureScript/Backend/IR/Optimizer/Spec.hs: adds a type signature to chainSite (the local helper in the Bound call-site inlining growth on non-collapsing monad chains #221 growth-bound tests), silencing -Wmissing-local-signatures on its inferred Exp -> Int -> Exp.

Both are mechanical; no behavior or golden output changes.

Copilot review request skipped — quota's spent till end of month.

Data.Text was imported qualified in Cpr/Spec.hs but never used.
chainSite in the #221 growth-bound test lacked a type signature,
tripping -Wmissing-local-signatures on its inferred polymorphic type;
pinning it to Exp -> Int -> Exp (its only call site folds over
[1 .. 16 :: Int]) resolves it.
@Unisay

Unisay commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

CI hasn't run yet — GitHub Actions is currently reporting a partial outage (status.githubstatus.com), not a repo-side issue. Will merge once CI comes back green.

@Unisay
Unisay merged commit c39e00b into main Jul 23, 2026
2 checks passed
@Unisay
Unisay deleted the chore/fix-optimizer-cpr-spec-warnings branch July 23, 2026 08:57
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