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 @@ -68,6 +68,7 @@ import Ide.Plugin.Example2 as Example2
68
68
import Ide.Plugin.GhcIde as GhcIde
69
69
import Ide.Plugin.Floskell as Floskell
70
70
import Ide.Plugin.Fourmolu as Fourmolu
71
+ import Ide.Plugin.Hlint as Hlint
71
72
import Ide.Plugin.Ormolu as Ormolu
72
73
import Ide.Plugin.StylishHaskell as StylishHaskell
73
74
import Ide.Plugin.Retrie as Retrie
@@ -110,9 +111,10 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
110
111
, StylishHaskell. descriptor " stylish-haskell"
111
112
, Retrie. descriptor " retrie"
112
113
#if AGPL
113
- , Brittany. descriptor " brittany"
114
+ , Brittany. descriptor " brittany"
114
115
#endif
115
116
, Eval. descriptor " eval"
117
+ , Hlint. descriptor " hlint"
116
118
]
117
119
examplePlugins =
118
120
[Example. descriptor " eg"
Original file line number Diff line number Diff line change @@ -117,6 +117,53 @@ library
117
117
118
118
default-language : Haskell2010
119
119
120
+ flag ghc-lib
121
+ default : False
122
+ manual : True
123
+ description : Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
124
+
125
+ library hls-ghc-lib
126
+ exposed-modules :
127
+ Ide.Plugin.Hlint
128
+ hs-source-dirs :
129
+ src
130
+ build-depends :
131
+ base
132
+ , aeson
133
+ , binary
134
+ , bytestring
135
+ , containers
136
+ , data-default
137
+ , deepseq
138
+ , directory
139
+ , extra
140
+ , filepath
141
+ , ghcide
142
+ , hashable
143
+ , haskell-lsp
144
+ , haskell-src-exts
145
+ , hlint >= 3.0
146
+ , regex-tdfa
147
+ , shake
148
+ , text
149
+ , transformers
150
+ , unordered-containers
151
+ if !flag(ghc-lib) && impl(ghc >= 8.10.1 ) && impl(ghc < 8.11.0 )
152
+ build-depends :
153
+ ghc == 8.10. *
154
+ else
155
+ build-depends :
156
+ ghc-lib == 8.10. *
157
+
158
+ ghc-options :
159
+ -Wall
160
+ -Wredundant-constraints
161
+ -Wno-name-shadowing
162
+ if flag(pedantic)
163
+ ghc-options : -Werror
164
+
165
+ default-language : Haskell2010
166
+
120
167
executable haskell-language-server
121
168
import : agpl
122
169
main-is : Main.hs
@@ -158,6 +205,7 @@ executable haskell-language-server
158
205
, haskell-lsp
159
206
, hie-bios
160
207
, haskell-language-server
208
+ , hls-ghc-lib
161
209
, hslogger
162
210
, optparse-applicative
163
211
, safe-exceptions
You can’t perform that action at this time.
0 commit comments