tree-sitter-haskell icon indicating copy to clipboard operation
tree-sitter-haskell copied to clipboard

Type family with functional dependency fails to parse

Open josephsumabat opened this issue 2 months ago • 1 comments

Having a functional dependency with a type family causes parsing to fail

type family MyTypeFamily (a :: Abc) :: (r :: Type) | a -> r where
  MyTypeFamily 'Cba = SomeType

josephsumabat avatar Oct 24 '25 20:10 josephsumabat

Interesting, this is indeed valid syntax, even though I've no idea what it means. Is this some edge case of the injectivity semantics? I've never seen it referred to as fundeps.

In any case, I fixed it in my upstream repo.

tek avatar Oct 24 '25 21:10 tek