Repository navigation
Haskell io: name hGetLine, putStrLn and the console/handle calls (Part of #8904) - #9193
Merged
Merged
Conversation
…s the issue lists (Part of #8904) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyio: addedhGetLine,hGetChar,hPutStrLn,putStrLn,putStr,getContents,interact. The issue's Expected text nameshGetLineandputStrLnas I/O anchors and the rule lacked them. The rule stays call-anchored: theIOtype in a signature still scores 0.test_haskell_io_names_the_console_and_handle_calls_8904, plus the existing_8904tests 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).rosetta:rebless-owed: the maintainer adds the label, I did not). Drift is onlyhaskell/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_abortsRecommendation: add
throwErrorandioError. Each is a raise in a monad, and per the issue they account for the whole 0.11 recall gap on pandoc. Leave barefailout: 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_functionpinshs_errat 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_opstypo,decoratorspragmas and theIOtype (all #9111), and I/O call recall (this PR). Sibling gaps:panics_and_abortsmonadic raise (a decision for #8862, no burned-estate program needs it);printandhPrintare left out ofioas too ambiguous.Facts checked: pytest on the haskell test files passes (198);
audit_check.pyall clear;crucible_check.py --update --yesrun undergolden-lock.shaftersync-pins.sh.🤖 Generated with Claude Code