Skip to content

Haskell io: name hGetLine, putStrLn and the console/handle calls (Part of #8904) - #9193

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8904-20261124T1301Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8904-20261124T1301Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8904 (Eagle Eye epic #8863). The issue stays open: its three named defects landed in #9111, so this PR is the leftover recall gap and the answer to the question.

What changed

  • haskell.py io: added hGetLine, hGetChar, hPutStrLn, putStrLn, putStr, getContents, interact. The issue's Expected text names hGetLine and putStrLn as I/O anchors and the rule lacked them. The rule stays call-anchored: the IO type in a signature still scores 0.
  • Test: parametrized test_haskell_io_names_the_console_and_handle_calls_8904, plus the existing _8904 tests from Rebless once for nine stacked engine fixes (supersedes #9053 #9054 #9055 #9056 #9057 #9058 #9059 #9061 #9067) #9111 (all four repros, through the real pipeline).
  • Golden masters re-blessed (rosetta:rebless-owed: the maintainer adds the label, I did not). Drift is only haskell/pandoc/App.hs (io count and the cluster-distance values derived from it), plus the aggregates that roll it up.

Fourth point (question, not changed): monadic raises in panics_and_aborts

Recommendation: add throwError and ioError. Each is a raise in a monad, and per the issue they account for the whole 0.11 recall gap on pandoc. Leave bare fail out: in a non-IO monad it is parser control flow, not a process-level raise, so it would add false positives. The decision is for #8862. test_haskell_issue_8904_measured_cases_per_function pins hs_err at 0 today.

Class / Sibling gaps

Class: a Haskell signal rule that matches a type or a typo instead of the operation its contract names. Handled: bitwise_ops typo, decorators pragmas and the IO type (all #9111), and I/O call recall (this PR). Sibling gaps: panics_and_aborts monadic raise (a decision for #8862, no burned-estate program needs it); print and hPrint are left out of io as too ambiguous.

Facts checked: pytest on the haskell test files passes (198); audit_check.py all clear; crucible_check.py --update --yes run under golden-lock.sh after sync-pins.sh.

🤖 Generated with Claude Code

…s the issue lists (Part of #8904)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 13:08
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 13:08
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit ca655e4 into main Nov 24, 2026
120 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8904-20261124T1301Z branch November 24, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant