You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
haskell: the #1312 point-free guard drops any arrowless top-level signature — including the canonical entry :: IO () #2934
Found while building #2908 Phase 2 contract tests (not introduced there; present on main).
The #1312 point-free-value-binding guard at detector.py:5657 (if "->" not in signature_text and "⊸" not in signature_text: continue, inside _slice_by_indentation) skips every top-level declaration whose type signature carries no arrow token. That discards Haskell's canonical zero-argument entry-point shape: an otherwise-identical file extracts addTwo :: Int -> Int -> Int but produces zero FunctionNodes for entry :: IO () (dropped entirely, not merged).
Consequences: haskell files whose only public surface is an arrowless binding under-report units; #2908's per-unit attributes never see those units. The Phase 2 contract tests route around it (arrow-bearing signatures only).
Fixing this moves existing extraction counts (haskell function counts rise), so it is its own rule/slicer-layer PR per #2812 rule 4; the guard needs a narrower definition of "point-free value binding" than "no arrow".
Activity
fix(haskell): retain arrowless IO-action entry points in the #1312 gu…