File tree 3 files changed +588
-1
lines changed
3 files changed +588
-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 @@ -76,7 +76,12 @@ library
76
76
, gitrev
77
77
, hashable
78
78
, haskell-lsp == 0.22. *
79
+ <<<<<<< HEAD
79
80
, hie-bios ^>= 0.6.1
81
+ =======
82
+ , haskell-src-exts
83
+ , hie-bios >= 0.4
84
+ >>>>>>> WIP on integrating hlint using DAML approach
80
85
, hslogger
81
86
, lens
82
87
, ormolu ^>= 0.1.2
@@ -107,6 +112,53 @@ library
107
112
108
113
default-language : Haskell2010
109
114
115
+ flag ghc-lib
116
+ default : False
117
+ manual : True
118
+ description : Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
119
+
120
+ library hls-ghc-lib
121
+ exposed-modules :
122
+ Ide.Plugin.Hlint
123
+ hs-source-dirs :
124
+ src
125
+ build-depends :
126
+ base
127
+ , aeson
128
+ , binary
129
+ , bytestring
130
+ , containers
131
+ , data-default
132
+ , deepseq
133
+ , directory
134
+ , extra
135
+ , filepath
136
+ , ghcide
137
+ , hashable
138
+ , haskell-lsp
139
+ , haskell-src-exts
140
+ , hlint >= 3.0
141
+ , regex-tdfa
142
+ , shake
143
+ , text
144
+ , transformers
145
+ , unordered-containers
146
+ if !flag(ghc-lib) && impl(ghc >= 8.10.1 ) && impl(ghc < 8.11.0 )
147
+ build-depends :
148
+ ghc == 8.10. *
149
+ else
150
+ build-depends :
151
+ ghc-lib == 8.10. *
152
+
153
+ ghc-options :
154
+ -Wall
155
+ -Wredundant-constraints
156
+ -Wno-name-shadowing
157
+ if flag(pedantic)
158
+ ghc-options : -Werror
159
+
160
+ default-language : Haskell2010
161
+
110
162
executable haskell-language-server
111
163
import : agpl
112
164
main-is : Main.hs
@@ -161,6 +213,7 @@ executable haskell-language-server
161
213
, haskell-lsp
162
214
, hie-bios >= 0.4
163
215
, haskell-language-server
216
+ , hls-ghc-lib
164
217
, hslogger
165
218
, optparse-applicative
166
219
, safe-exceptions
You can’t perform that action at this time.
0 commit comments