Repository navigation
Haskell calls_out: f $ x application heads; definition left sides are not calls (Part of #6454) - #6504
Conversation
…6454) The haskell rule now captures heads of `f x`, `f (g x)` and `Just x` by position (after an operator, bracket, do/then/case, or at a body line start) plus an argument-start token; type signatures are masked, return/try/catch/finally are calls, and pattern lines bind rather than call. pandoc: P 44.2 -> 65.5, R 30.8 -> 78.4. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…6454) Only the haskell/pandoc group of calls_out_to moves, plus the fan_in/fan_out/pagerank and graph snapshots derived from it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ind names (Part of #6454) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…er slice (Part of #6454) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ut (Part of #6454) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6504 @ 69dbf0c: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
Part of #6454. Stacked on #6499 (Haskell juxtaposition
calls_out, open): this branch contains #6499's commits, so merge #6499 first; the diff then shrinks to this slice (haskell.py, one test file, one contract row, baseline/ledger/goldens).What changed
Class: Haskell
calls_outhead recognition for infix$application, and definition left sides read as calls.f $ x,f $! x,withObject "k" $ \m -> ...: a head followed by an infix$(whitespace on both sides) is an application.$(splice),($ x),(f $)are not. A bare string is deliberately NOT an argument start: the literal shield turns a backtick operator (s `elem` ys) into the same""as a string, so only"..." $counts.f (Foo a) = ...,let g (x, y) = ...,where h x = ...) is masked via_calls_out_masked_blocks: the oldname (alternative read those binders as calls. A==/<=before the=, a record brace,$, a lambda or<-means an expression line, nothing masked.Pandoc (call_graph_accuracy, level 1)
fn:infix/-16 -> 3 (the remaining 3 sit past a#ifdefthat cuts the function span, not a$problem);infix/-+generic8 -> 0;function<local_bindspatterns shrink. Other languages unchanged (baseline and ledger edited for haskell only; powershell drift in a full regenerate comes from main, not this PR).Golden drift
Haskell
Calls Out Torows only, plus PageRank rounding moves in other languages' rows that follow from the haskell edge changes (both legs blessed viagolden-lock.sh crucible_check.py --update --yes).Checklist
Checklist: partial [c:e595dbf8] --
apply/qualifiedresidue (E.throwIO e,T.singleton x), calls past a#ifdefspan cut, and where-bound bodies attributed to the parent function remainChecklist: partial [c:39d03c20] --
apply/constructor2 left (OptDestination outputFileinside a list literal,Format "markdown"string arg)Class sweep
Class: Haskell application-head recognition. Sibling gaps: backtick-infix heads, qualified heads (
T.unsnoc), bare-string arguments (blocked by the shield conflating backticks and strings),#ifdef/CPP function-span cuts, point-free bodies (tsoutside-ts-function64) and where/let bodies attributed to the parent (tsinner-named-function52): reference-attribution differences, not rule bugs.Lessons for agents
""exactly like a string: a rule that treats"as an argument start capturess `op` ys.tri_comparison_chart.py --cihas no haskell baseline; it dirtiestri_comparison_ledger.json, restore it.call_graph_accuracy.py --regenerateafter merging main rewrites other languages' rows: keep only the haskell block.🤖 Generated with Claude Code