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