File tree 3 files changed +583
-1
lines changed
3 files changed +583
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import Ide.Main (defaultMain)
11
11
import Ide.Types (IdePlugins )
12
12
13
13
-- haskell-language-server plugins
14
+
14
15
import Ide.Plugin.Eval as Eval
15
16
import Ide.Plugin.Example as Example
16
17
import Ide.Plugin.Example2 as Example2
@@ -22,6 +23,7 @@ import Ide.Plugin.Ormolu as Ormolu
22
23
import Ide.Plugin.Retrie as Retrie
23
24
import Ide.Plugin.StylishHaskell as StylishHaskell
24
25
import Ide.Plugin.Tactic as Tactic
26
+ import Ide.Plugin.Hlint as Hlint
25
27
#if AGPL
26
28
import Ide.Plugin.Brittany as Brittany
27
29
#endif
@@ -55,11 +57,12 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
55
57
, StylishHaskell. descriptor " stylish-haskell"
56
58
, Retrie. descriptor " retrie"
57
59
#if AGPL
58
- , Brittany. descriptor " brittany"
60
+ , Brittany. descriptor " brittany"
59
61
#endif
60
62
, Eval. descriptor " eval"
61
63
, ImportLens. descriptor " importLens"
62
64
, ModuleName. descriptor " moduleName"
65
+ , Hlint. descriptor " hlint"
63
66
]
64
67
examplePlugins =
65
68
[Example. descriptor " eg"
Original file line number Diff line number Diff line change @@ -77,6 +77,53 @@ library
77
77
78
78
default-language : Haskell2010
79
79
80
+ flag ghc-lib
81
+ default : False
82
+ manual : True
83
+ description : Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
84
+
85
+ library hls-ghc-lib
86
+ exposed-modules :
87
+ Ide.Plugin.Hlint
88
+ hs-source-dirs :
89
+ src
90
+ build-depends :
91
+ base
92
+ , aeson
93
+ , binary
94
+ , bytestring
95
+ , containers
96
+ , data-default
97
+ , deepseq
98
+ , directory
99
+ , extra
100
+ , filepath
101
+ , ghcide
102
+ , hashable
103
+ , haskell-lsp
104
+ , haskell-src-exts
105
+ , hlint >= 3.0
106
+ , regex-tdfa
107
+ , shake
108
+ , text
109
+ , transformers
110
+ , unordered-containers
111
+ if !flag(ghc-lib) && impl(ghc >= 8.10.1 ) && impl(ghc < 8.11.0 )
112
+ build-depends :
113
+ ghc == 8.10. *
114
+ else
115
+ build-depends :
116
+ ghc-lib == 8.10. *
117
+
118
+ ghc-options :
119
+ -Wall
120
+ -Wredundant-constraints
121
+ -Wno-name-shadowing
122
+ if flag(pedantic)
123
+ ghc-options : -Werror
124
+
125
+ default-language : Haskell2010
126
+
80
127
executable haskell-language-server
81
128
import : agpl, common-deps
82
129
main-is : Main.hs
You can’t perform that action at this time.
0 commit comments