-
-
Notifications
You must be signed in to change notification settings - Fork 412
Open
Labels
component: ghcidelevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..type: enhancementNew feature or requestNew feature or request
Description
Consider the following:
class Yo f where
yo :: f x -> Int
go :: M1 i c f x -> Int
go (M1 fx) = yo fxThis gives me an underline on the call to yo, complaining that there is no instance Yo f. It comes with a code action to insert it into the type.
Now consider the analogous:
class Yo f where
yo :: f x -> Int
instance Yo (M1 _1 _2 f) where
yo (M1 fx) = yo fxSame diagnostic, but this time there is no code action to fix the issue!
berberman and uhbif19
Metadata
Metadata
Assignees
Labels
component: ghcidelevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..type: enhancementNew feature or requestNew feature or request