Repository navigation
fix(haskell): GHC pragmas stay in the code stream and count as decorators (Part of #8904) - #9054
squid-protocol wants to merge 4 commits into
Conversation
…tors (Part of #8904) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t of #8904) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #9054 @ f02eef9: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
No description provided. |
|
PR #9054 @ ee803dd: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (00e6f13) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9054 @ 00e6f13: 14 failed check(s) == crucible (cancelled) -- infra == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
1 similar comment
|
No description provided. |
|
Waiting on an owner decision (asked privately, 2026-11-22). Nothing is needed from contributors; work resumes once it is answered. |
#9056 #9057 #9058 #9059 #9061 #9067) (#9111) * apply #9053 (non-snapshot changes) * apply #9054 (non-snapshot changes) * apply #9057 (non-snapshot changes) * apply #9059 (non-snapshot changes) * apply #9061 (non-snapshot changes) * apply #9067 (non-snapshot changes) * apply #9055 (non-snapshot changes) * golden: re-bless once for the seven stacked engine fixes (#9053 #9054 #9055 #9057 #9059 #9061 #9067) Each of the seven PRs conflicted with the others in the golden-master snapshots, so merging them one at a time would have re-conflicted the rest each time. One combined branch, one bless (crucible_check.py --update --yes through golden-lock.sh, both legs) plus the dartdoom DOOM golden. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * apply #9056 #9058 (non-snapshot changes) * golden: re-bless with #9056 and #9058 folded in (powershell, perl) plus odamex and prboom-plus DOOM goldens Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #8904 (epic #8863).
rosetta:rebless-owed(Haskell decorators counts move).What changed
Issue points 1 (
.&./.|.typo) and 2 (IOtype counted as io) were already fixed on main by #8935; this PR pins them end to end and fixes point 3,decoratorsdead for Haskell.prism._strip_nested_commentspeeled every{- -}block,{-# INLINE f #-}pragmas included, into the comment surface, so the detector never saw them. Fix: for haskell only, an atomic masked alternative{-# ... #-}(bounded, refuses to cross-}) keeps the pragma in the code stream;--comments and{- -}comments containing a pragma still strip it.detector.py: a pragma sits above the binding's signature, outside the function slice, so_haskell_leading_pragmascounts the contiguous pragma/blank lines directly above each Haskell function intohit_vector["decorators"].haskell.pydecorators: any{-# NAME ... #-}pragma (was a fixed list of six names;SPECIALIZE,UNPACK, ... missed), bounded{0,500}.throwError/fail) is deferred to Keyword families: five definition questions for the owner (json, generators, closures, cleanup, telemetry) #8862, pinned unchanged by the test.Class
A construct that is syntactically a comment but semantically code (GHC pragma) erased by the comment stripper, leaving its signal family dead.
Sibling gaps
None found: OCaml
[@@x]and F#[<x>]are not comment-shaped; scheme shares the lexical family but has no pragma form. No burned-estate program needs any of this.Tests
tests/extraction/languages/test_haskell_strict.py: the four issue cases through Prism + extractor (bitwise 1, io 0, decorators 1, throwError unchanged), pragmas kept / commented pragmas dropped, line numbers stable.Gates
pytesthaskell tests (102 pass),ruff format --check,tests/tools/audit_check.py(all clear),golden-lock.sh crucible_check.py --update --yes(both fixtures re-blessed). A controlcrucible_check.pyon origin/main passes clean. Drift: Haskell (pandoc) file records, plus 0.01-level layout coordinate shifts in a few powershell/yaml files and jcl snapshot hashes downstream of the repo-level layout.Cross-repo: keyword-rosetta haskell counts move (decorators); re-run its sweep/rebless after this merges. No companion PR.
Lessons for agents
str.replace(old, new, 1)oncombined_pattern = re.compile(hit the positional sibling in prism.py first (two near-identical blocks): confirm withgit diffthat the intended site changed.Facts checked: issue points 1-2 reproduce as fixed on origin/main (scan of the issue repro); decorators was 0 even file-level until the prism change.
🤖 Generated with Claude Code