Skip to content

Commit 9eb92e0

Browse files
authored
Prepare for Hackage (#1176)
* Automatic flags for packaged plugins * Default all-* flags to false * Default individual plugin flags to True * Add maintainer comments * Add upper base bounds to all plugin packages
1 parent bf642c0 commit 9eb92e0

File tree

8 files changed

+38
-32
lines changed

8 files changed

+38
-32
lines changed

haskell-language-server.cabal

+31-25
Original file line numberDiff line numberDiff line change
@@ -77,91 +77,97 @@ library
7777

7878
default-language: Haskell2010
7979

80+
-- Plugin flags are designed for 'cabal install haskell-language-server':
81+
-- - Packaged plugins should be manual:False
82+
-- - Non packaged plugins and bulk flags should be manual:True
83+
-- - Bulk flags should be default:False
84+
-- - Individual flags should be default:True
85+
8086
flag all-plugins
8187
description: Enable all non formatter plugins
82-
default: True
88+
default: False
8389
manual: True
8490

8591
flag all-formatters
8692
description: Enable all fomatters
87-
default: True
93+
default: False
8894
manual: True
8995

9096
flag class
9197
description: Enable class plugin
92-
default: False
93-
manual: True
98+
default: True
99+
manual: False
94100

95101
flag haddockComments
96102
description: Enable haddockComments plugin
97-
default: False
98-
manual: True
103+
default: True
104+
manual: False
99105

100106
flag eval
101107
description: Enable eval plugin
102-
default: False
103-
manual: True
108+
default: True
109+
manual: False
104110

105111
flag importLens
106112
description: Enable importLens plugin
107-
default: False
108-
manual: True
113+
default: True
114+
manual: False
109115

110116
flag retrie
111117
description: Enable retrie plugin
112-
default: False
113-
manual: True
118+
default: True
119+
manual: False
114120

115121
flag tactic
116122
description: Enable tactic plugin
117-
default: False
118-
manual: True
123+
default: True
124+
manual: False
119125

120126
flag hlint
121127
description: Enable hlint plugin
122-
default: False
123-
manual: True
128+
default: True
129+
manual: False
124130

125131
flag moduleName
126132
description: Enable moduleName plugin
127-
default: False
133+
default: True
128134
manual: True
129135

130136
flag pragmas
131137
description: Enable pragmas plugin
132-
default: False
138+
default: True
133139
manual: True
134140

135141
flag splice
136142
description: Enable splice plugin
137-
default: False
138-
manual: True
143+
default: True
144+
manual: False
139145

140146
-- formatters
141147

142148
flag floskell
143149
description: Enable floskell plugin
144-
default: False
150+
default: True
145151
manual: True
146152

147153
flag fourmolu
148154
description: Enable fourmolu plugin
149-
default: False
155+
default: True
150156
manual: True
151157

152158
flag ormolu
153159
description: Enable ormolu plugin
154-
default: False
160+
default: True
155161
manual: True
156162

157163
flag stylishHaskell
158164
description: Enable stylishHaskell plugin
159-
default: False
165+
default: True
160166
manual: True
161167

162168
flag brittany
163169
description: Enable brittany plugin
164-
default: False
170+
default: True
165171
manual: True
166172

167173
common example-plugins

plugins/hls-class-plugin/hls-class-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ library
1313
exposed-modules: Ide.Plugin.Class
1414
hs-source-dirs: src
1515
build-depends: aeson
16-
, base
16+
, base >=4.12 && <5
1717
, containers
1818
, haskell-lsp
1919
, hls-plugin-api

plugins/hls-eval-plugin/hls-eval-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ library
2525

2626
build-depends:
2727
, aeson
28-
, base
28+
, base >=4.12 && <5
2929
, containers
3030
, deepseq
3131
, Diff

plugins/hls-explicit-imports-plugin/hls-explicit-imports-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ library
1616
exposed-modules: Ide.Plugin.ExplicitImports
1717
hs-source-dirs: src
1818
build-depends: aeson
19-
, base
19+
, base >=4.12 && <5
2020
, containers
2121
, deepseq
2222
, haskell-lsp-types

plugins/hls-haddock-comments-plugin/hls-haddock-comments-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ library
1818
hs-source-dirs: src
1919
ghc-options: -Wall -Wno-name-shadowing -Wredundant-constraints
2020
build-depends:
21-
, base
21+
, base >=4.12 && <5
2222
, containers
2323
, ghc
2424
, ghc-exactprint

plugins/hls-hlint-plugin/hls-hlint-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ library
2828
build-depends:
2929
, aeson
3030
, apply-refact
31-
, base
31+
, base >=4.12 && <5
3232
, binary
3333
, bytestring
3434
, containers

plugins/hls-retrie-plugin/hls-retrie-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ library
1616
exposed-modules: Ide.Plugin.Retrie
1717
hs-source-dirs: src
1818
build-depends: aeson
19-
, base
19+
, base >=4.12 && <5
2020
, containers
2121
, deepseq
2222
, directory

plugins/hls-splice-plugin/hls-splice-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ library
1515
other-modules: Ide.Plugin.Splice.Types
1616
hs-source-dirs: src
1717
build-depends: aeson
18-
, base
18+
, base >=4.12 && <5
1919
, containers
2020
, foldl
2121
, haskell-lsp

0 commit comments

Comments
 (0)