File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
plugins/hls-hlint-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,14 @@ instance Binary GetHlintDiagnostics
87
87
88
88
type instance RuleResult GetHlintDiagnostics = ()
89
89
90
+ -- | Hlint rules to generate file diagnostics based on hlint hints
91
+ -- | This rule is recomputed when:
92
+ -- | - The files of interest have changed via `getFilesOfInterest`
93
+ -- | - One of those files has been edited via
94
+ -- | - `getIdeas` -> `getParsedModule`, if the hls ghc matches the hlint default ghc
95
+ -- | - `getIdeas` -> `getFileContents` otherwise (hlint is using ghc-lib)
96
+ -- | - The client settings have changed, to honour the `hlintOn` setting, via `getClientConfigAction`
97
+ -- | - The hlint specific settings have changed, via `getHlintSettingsRule`
90
98
rules :: Rules ()
91
99
rules = do
92
100
define $ \ GetHlintDiagnostics file -> do
You can’t perform that action at this time.
0 commit comments