File tree 3 files changed +584
-1
lines changed
3 files changed +584
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ import Ide.Plugin.Example as Example
93
93
import Ide.Plugin.Example2 as Example2
94
94
import Ide.Plugin.GhcIde as GhcIde
95
95
import Ide.Plugin.Floskell as Floskell
96
+ import Ide.Plugin.Hlint as Hlint
96
97
import Ide.Plugin.Ormolu as Ormolu
97
98
import Ide.Plugin.StylishHaskell as StylishHaskell
98
99
#if AGPL
@@ -132,8 +133,9 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
132
133
, Ormolu. descriptor " ormolu"
133
134
, StylishHaskell. descriptor " stylish-haskell"
134
135
#if AGPL
135
- , Brittany. descriptor " brittany"
136
+ , Brittany. descriptor " brittany"
136
137
#endif
138
+ , Hlint. descriptor " hlint"
137
139
]
138
140
examplePlugins =
139
141
[Example. descriptor " eg"
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ library
77
77
, gitrev
78
78
, hashable
79
79
, haskell-lsp == 0.22. *
80
+ , haskell-src-exts
80
81
, hie-bios >= 0.4
81
82
, hslogger
82
83
, lens
@@ -108,6 +109,53 @@ library
108
109
109
110
default-language : Haskell2010
110
111
112
+ flag ghc-lib
113
+ default : False
114
+ manual : True
115
+ description : Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
116
+
117
+ library hls-ghc-lib
118
+ exposed-modules :
119
+ Ide.Plugin.Hlint
120
+ hs-source-dirs :
121
+ src
122
+ build-depends :
123
+ base
124
+ , aeson
125
+ , binary
126
+ , bytestring
127
+ , containers
128
+ , data-default
129
+ , deepseq
130
+ , directory
131
+ , extra
132
+ , filepath
133
+ , ghcide
134
+ , hashable
135
+ , haskell-lsp
136
+ , haskell-src-exts
137
+ , hlint >= 3.0
138
+ , regex-tdfa
139
+ , shake
140
+ , text
141
+ , transformers
142
+ , unordered-containers
143
+ if !flag(ghc-lib) && impl(ghc >= 8.10.1 ) && impl(ghc < 8.11.0 )
144
+ build-depends :
145
+ ghc == 8.10. *
146
+ else
147
+ build-depends :
148
+ ghc-lib == 8.10. *
149
+
150
+ ghc-options :
151
+ -Wall
152
+ -Wredundant-constraints
153
+ -Wno-name-shadowing
154
+ if flag(pedantic)
155
+ ghc-options : -Werror
156
+
157
+ default-language : Haskell2010
158
+
111
159
executable haskell-language-server
112
160
import : agpl
113
161
main-is : Main.hs
@@ -162,6 +210,7 @@ executable haskell-language-server
162
210
, haskell-lsp
163
211
, hie-bios >= 0.4
164
212
, haskell-language-server
213
+ , hls-ghc-lib
165
214
, hslogger
166
215
, optparse-applicative
167
216
, shake >= 0.17.5
You can’t perform that action at this time.
0 commit comments