
Can you elaborate? I don't understand where you are coming from yet.
In haste,
* Many open tickets about fundepshttps://gitlab.haskell.org/ghc/ghc/-/issues?label_name=FunctionalDependencie...… still open because of lack of agreement about what the Right Thing is, not because the implementation is difficult
* As originally proposed they are quite restrictive (the Coverage Condition). Many uses of fundeps use a more liberal coverage condition, currently enabled by UndecidableInstances. I’m not sure if “Many” means “most” or just “a minority”; data needed.
* Fundeps affect unification in type inference, and have no effect in Givens, unlike type families. Nothing inherently wrong with that, but it feels unsatisfying that we can know that t1~t2 (from a fundep between two givens) but can’t exploit that fact.
They are undoubtedly useful. I’m not arguing for removal. They have just never felt as solid to me as other parts of our type system.
Simon
From: Spiwack, Arnaud