Skip to content

haskell: the #1312 point-free guard drops any arrowless top-level signature — including the canonical entry :: IO () #2934

Closed

Description

@squid-protocol

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

  1. added
    bug
    core-engine
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcore-engine

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions