File tree 3 files changed +582
-1
lines changed
3 files changed +582
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import Ide.Plugin.GhcIde as GhcIde
17
17
import Ide.Plugin.Floskell as Floskell
18
18
import Ide.Plugin.Fourmolu as Fourmolu
19
19
import Ide.Plugin.ImportLens as ImportLens
20
+ import Ide.Plugin.Hlint as Hlint
20
21
import Ide.Plugin.Ormolu as Ormolu
21
22
import Ide.Plugin.StylishHaskell as StylishHaskell
22
23
import Ide.Plugin.Retrie as Retrie
@@ -49,10 +50,11 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
49
50
, StylishHaskell. descriptor " stylish-haskell"
50
51
, Retrie. descriptor " retrie"
51
52
#if AGPL
52
- , Brittany. descriptor " brittany"
53
+ , Brittany. descriptor " brittany"
53
54
#endif
54
55
, Eval. descriptor " eval"
55
56
, ImportLens. descriptor " importLens"
57
+ , Hlint. descriptor " hlint"
56
58
]
57
59
examplePlugins =
58
60
[Example. descriptor " eg"
Original file line number Diff line number Diff line change @@ -77,6 +77,53 @@ library
77
77
78
78
default-language : Haskell2010
79
79
80
+ flag ghc-lib
81
+ default : False
82
+ manual : True
83
+ description : Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
84
+
85
+ library hls-ghc-lib
86
+ exposed-modules :
87
+ Ide.Plugin.Hlint
88
+ hs-source-dirs :
89
+ src
90
+ build-depends :
91
+ base
92
+ , aeson
93
+ , binary
94
+ , bytestring
95
+ , containers
96
+ , data-default
97
+ , deepseq
98
+ , directory
99
+ , extra
100
+ , filepath
101
+ , ghcide
102
+ , hashable
103
+ , haskell-lsp
104
+ , haskell-src-exts
105
+ , hlint >= 3.0
106
+ , regex-tdfa
107
+ , shake
108
+ , text
109
+ , transformers
110
+ , unordered-containers
111
+ if !flag(ghc-lib) && impl(ghc >= 8.10.1 ) && impl(ghc < 8.11.0 )
112
+ build-depends :
113
+ ghc == 8.10. *
114
+ else
115
+ build-depends :
116
+ ghc-lib == 8.10. *
117
+
118
+ ghc-options :
119
+ -Wall
120
+ -Wredundant-constraints
121
+ -Wno-name-shadowing
122
+ if flag(pedantic)
123
+ ghc-options : -Werror
124
+
125
+ default-language : Haskell2010
126
+
80
127
executable haskell-language-server
81
128
import : agpl, common-deps
82
129
main-is : Main.hs
You can’t perform that action at this time.
0 commit comments