-
-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Labels
component: wingmantype: 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
Is your feature request related to a problem? Please describe.
I just spent a long time troubleshooting why I was getting diagnostics for incomplete patterns despite explicitly disabling the incomplete-patterns warning. Turns out hls-tactics-plugin is enforcing that warning:
haskell-language-server/plugins/hls-tactics-plugin/src/Wingman/StaticPlugin.hs
Lines 59 to 64 in 8b5a1e0
| -- | Wingman wants to support destructing of empty cases, but these are a parse | |
| -- error by default. So we want to enable 'EmptyCase', but then that leads to | |
| -- silent errors without 'Opt_WarnIncompletePatterns'. | |
| allowEmptyCaseButWithWarning :: DynFlags -> DynFlags | |
| allowEmptyCaseButWithWarning = | |
| flip xopt_set EmptyCase . flip wopt_set Opt_WarnIncompletePatterns |
Describe the solution you'd like
Either disable that behaviour, or make it clear in the documentation.
Metadata
Metadata
Assignees
Labels
component: wingmantype: 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