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