Skip to content

Commit e173e4e

Browse files
committed
WIP on integrating hlint using DAML approach
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes haskell#32
1 parent 5e92113 commit e173e4e

File tree

3 files changed

+567
-0
lines changed

3 files changed

+567
-0
lines changed

exe/Main.hs

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import Development.IDE.Plugin.CodeAction as CodeAction
5555
import Development.IDE.Plugin.Completions as Completions
5656
import Ide.Plugin.Example as Example
5757
import Ide.Plugin.Floskell as Floskell
58+
import Ide.Plugin.Hlint as Hlint
5859
import Ide.Plugin.Ormolu as Ormolu
5960

6061
-- ---------------------------------------------------------------------
@@ -69,6 +70,7 @@ idePlugins includeExample
6970
CodeAction.plugin <>
7071
formatterPlugins [("ormolu", Ormolu.provider)
7172
,("floskell", Floskell.provider)] <>
73+
Hlint.plugin <>
7274
if includeExample then Example.plugin else mempty
7375

7476
-- ---------------------------------------------------------------------

haskell-language-server.cabal

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ library
3030
Ide.Cradle
3131
Ide.Plugin.Config
3232
Ide.Plugin.Example
33+
Ide.Plugin.Hlint
3334
Ide.Plugin.Ormolu
3435
Ide.Plugin.Floskell
3536
Ide.Plugin.Formatter
@@ -57,7 +58,9 @@ library
5758
, gitrev
5859
, hashable
5960
, haskell-lsp == 0.20.*
61+
, haskell-src-exts
6062
, hie-bios >= 0.4
63+
, hlint >= 2.2.10
6164
, hslogger
6265
, optparse-simple
6366
, process

0 commit comments

Comments
 (0)