isovector / haskell-language-server

Integration point for ghcide and haskell-ide-engine. One IDE to rule them all.
Apache License 2.0
0 stars 2 forks source link

Bad heuristic #22

Closed isovector closed 3 years ago

isovector commented 3 years ago
data Foo a = Done a | Rec (Foo a)
instance Functor Foo where
   fmap = (\ fab fa
      -> case fa of
           (Done a) -> Done (fab a)
           (Rec fa2) -> fmap fab fa2)

this last case should be Rec (fmap fab fa2)

isovector commented 3 years ago

This is automatically resolved by the known fmap tactic, so I think we're fine.