Skip to content

Commit dff31ba

Browse files
committed
Format .cabal files with cabal-gild
1 parent 4985793 commit dff31ba

File tree

6 files changed

+1798
-1731
lines changed

6 files changed

+1798
-1731
lines changed

ghcide/ghcide.cabal

Lines changed: 122 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
cabal-version: 3.4
2-
build-type: Simple
3-
category: Development
4-
name: ghcide
5-
version: 2.8.0.0
6-
license: Apache-2.0
7-
license-file: LICENSE
8-
author: Digital Asset and Ghcide contributors
9-
maintainer: Ghcide contributors
10-
copyright: Digital Asset and Ghcide contributors 2018-2020
11-
synopsis: The core of an IDE
12-
description: A library for building Haskell IDE's on top of the GHC API.
13-
homepage:
14-
https://github.com/haskell/haskell-language-server/tree/master/ghcide#readme
15-
16-
bug-reports: https://github.com/haskell/haskell-language-server/issues
17-
tested-with: GHC ==9.8.2 || ==9.6.5 || ==9.4.8 || ==9.2.8
1+
cabal-version: 3.4
2+
build-type: Simple
3+
category: Development
4+
name: ghcide
5+
version: 2.8.0.0
6+
license: Apache-2.0
7+
license-file: LICENSE
8+
author: Digital Asset and Ghcide contributors
9+
maintainer: Ghcide contributors
10+
copyright: Digital Asset and Ghcide contributors 2018-2020
11+
synopsis: The core of an IDE
12+
description: A library for building Haskell IDE's on top of the GHC API.
13+
homepage: https://github.com/haskell/haskell-language-server/tree/master/ghcide#readme
14+
bug-reports: https://github.com/haskell/haskell-language-server/issues
15+
tested-with: ghc ==9.8.2 || ==9.6.5 || ==9.4.8 || ==9.2.8
1816
extra-source-files:
1917
CHANGELOG.md
2018
README.md
@@ -25,13 +23,13 @@ extra-source-files:
2523
test/data/**/*.yaml
2624

2725
source-repository head
28-
type: git
26+
type: git
2927
location: https://github.com/haskell/haskell-language-server.git
3028

3129
flag pedantic
3230
description: Enable -Werror
33-
default: False
34-
manual: True
31+
default: False
32+
manual: True
3533

3634
common warnings
3735
ghc-options:
@@ -45,77 +43,76 @@ common warnings
4543

4644
library
4745
import: warnings
48-
default-language: GHC2021
46+
default-language: GHC2021
4947
build-depends:
50-
, aeson
51-
, array
52-
, async
53-
, base >=4.16 && <5
54-
, base16-bytestring >=0.1.1 && <1.1
55-
, binary
56-
, bytestring
57-
, case-insensitive
58-
, co-log-core
59-
, containers
60-
, cryptohash-sha1 >=0.11.100 && <0.12
61-
, data-default
62-
, deepseq
63-
, dependent-map
64-
, dependent-sum
65-
, Diff ^>=0.4.0
66-
, directory
67-
, dlist
68-
, enummapset
69-
, exceptions
70-
, extra >=1.7.14
71-
, filepath
72-
, fingertree
73-
, focus >=1.0.3.2
74-
, ghc >=9.2
75-
, ghc-boot
76-
, ghc-boot-th
77-
, ghc-check >=0.5.0.8
78-
, ghc-paths
79-
, ghc-trace-events
80-
, Glob
81-
, haddock-library >=1.8 && <1.12
82-
, hashable
83-
, hie-bios ^>=0.14.0
84-
, hie-compat ^>=0.3.0.0
85-
, hiedb ^>= 0.6.0.0
86-
, hls-graph == 2.8.0.0
87-
, hls-plugin-api == 2.8.0.0
88-
, implicit-hie >= 0.1.4.0 && < 0.1.5
89-
, lens
90-
, list-t
91-
, lsp ^>=2.5.0.0
92-
, lsp-types ^>=2.2.0.0
93-
, mtl
94-
, opentelemetry >=0.6.1
95-
, optparse-applicative
96-
, parallel
97-
, prettyprinter >=1.7
98-
, prettyprinter-ansi-terminal
99-
, random
100-
, regex-tdfa >=1.3.1.0
101-
, safe-exceptions
102-
, sorted-list
103-
, sqlite-simple
104-
, stm
105-
, stm-containers
106-
, syb
107-
, text
108-
, text-rope
109-
, time
110-
, transformers
111-
, unliftio >=0.2.6
112-
, unliftio-core
113-
, unordered-containers >=0.2.10.0
114-
, vector
48+
Diff ^>=0.4.0,
49+
Glob,
50+
aeson,
51+
array,
52+
async,
53+
base >=4.16 && <5,
54+
base16-bytestring >=0.1.1 && <1.1,
55+
binary,
56+
bytestring,
57+
case-insensitive,
58+
co-log-core,
59+
containers,
60+
cryptohash-sha1 >=0.11.100 && <0.12,
61+
data-default,
62+
deepseq,
63+
dependent-map,
64+
dependent-sum,
65+
directory,
66+
dlist,
67+
enummapset,
68+
exceptions,
69+
extra >=1.7.14,
70+
filepath,
71+
fingertree,
72+
focus >=1.0.3.2,
73+
ghc >=9.2,
74+
ghc-boot,
75+
ghc-boot-th,
76+
ghc-check >=0.5.0.8,
77+
ghc-paths,
78+
ghc-trace-events,
79+
haddock-library >=1.8 && <1.12,
80+
hashable,
81+
hie-bios ^>=0.14.0,
82+
hie-compat ^>=0.3.0.0,
83+
hiedb ^>=0.6.0.0,
84+
hls-graph ==2.8.0.0,
85+
hls-plugin-api ==2.8.0.0,
86+
implicit-hie >=0.1.4.0 && <0.1.5,
87+
lens,
88+
list-t,
89+
lsp ^>=2.5.0.0,
90+
lsp-types ^>=2.2.0.0,
91+
mtl,
92+
opentelemetry >=0.6.1,
93+
optparse-applicative,
94+
parallel,
95+
prettyprinter >=1.7,
96+
prettyprinter-ansi-terminal,
97+
random,
98+
regex-tdfa >=1.3.1.0,
99+
safe-exceptions,
100+
sorted-list,
101+
sqlite-simple,
102+
stm,
103+
stm-containers,
104+
syb,
105+
text,
106+
text-rope,
107+
time,
108+
transformers,
109+
unliftio >=0.2.6,
110+
unliftio-core,
111+
unordered-containers >=0.2.10.0,
112+
vector,
115113

116114
if os(windows)
117115
build-depends: Win32
118-
119116
else
120117
build-depends: unix
121118

@@ -127,7 +124,10 @@ library
127124
RecordWildCards
128125
ViewPatterns
129126

130-
hs-source-dirs: src session-loader
127+
hs-source-dirs:
128+
src
129+
session-loader
130+
131131
exposed-modules:
132132
Control.Concurrent.Strict
133133
Development.IDE
@@ -142,15 +142,15 @@ library
142142
Development.IDE.Core.PositionMapping
143143
Development.IDE.Core.Preprocessor
144144
Development.IDE.Core.ProgressReporting
145-
Development.IDE.Core.Rules
146145
Development.IDE.Core.RuleTypes
146+
Development.IDE.Core.Rules
147147
Development.IDE.Core.Service
148148
Development.IDE.Core.Shake
149149
Development.IDE.Core.Tracing
150150
Development.IDE.Core.UseStale
151151
Development.IDE.GHC.Compat
152-
Development.IDE.GHC.Compat.Core
153152
Development.IDE.GHC.Compat.CmdLine
153+
Development.IDE.GHC.Compat.Core
154154
Development.IDE.GHC.Compat.Env
155155
Development.IDE.GHC.Compat.Iface
156156
Development.IDE.GHC.Compat.Logger
@@ -175,8 +175,8 @@ library
175175
Development.IDE.Monitoring.OpenTelemetry
176176
Development.IDE.Plugin
177177
Development.IDE.Plugin.Completions
178-
Development.IDE.Plugin.Completions.Types
179178
Development.IDE.Plugin.Completions.Logic
179+
Development.IDE.Plugin.Completions.Types
180180
Development.IDE.Plugin.HLS
181181
Development.IDE.Plugin.HLS.GhcIde
182182
Development.IDE.Plugin.Test
@@ -208,55 +208,56 @@ library
208208
Development.IDE.Types.Action
209209

210210
if flag(pedantic)
211-
ghc-options:
212-
-Werror
211+
ghc-options: -Werror
213212

214213
flag test-exe
215214
description: Build the ghcide-test-preprocessor executable
216-
default: True
215+
default: True
217216

218217
executable ghcide-test-preprocessor
219218
import: warnings
220-
default-language: GHC2021
221-
hs-source-dirs: test/preprocessor
222-
main-is: Main.hs
223-
build-depends: base >=4 && <5
219+
default-language: GHC2021
220+
hs-source-dirs: test/preprocessor
221+
main-is: Main.hs
222+
build-depends: base >=4 && <5
224223

225224
if !flag(test-exe)
226225
buildable: False
227226

228227
flag executable
229228
description: Build the ghcide executable
230-
default: True
229+
default: True
231230

232231
executable ghcide
233232
import: warnings
234-
default-language: GHC2021
235-
hs-source-dirs: exe
236-
ghc-options: -threaded -rtsopts "-with-rtsopts=-I0 -A128M -T"
237-
233+
default-language: GHC2021
234+
hs-source-dirs: exe
235+
ghc-options:
236+
-threaded
237+
-rtsopts
238+
"-with-rtsopts=-I0 -A128M -T"
238239

239240
-- allow user RTS overrides
240241
-- disable idle GC
241242
-- increase nursery size
242243
-- Enable collection of heap statistics
243-
main-is: Main.hs
244+
main-is: Main.hs
244245
build-depends:
245-
, base >=4.16 && <5
246-
, data-default
247-
, extra
248-
, ghcide
249-
, gitrev
250-
, hls-plugin-api
251-
, lsp
252-
, lsp-types
253-
, optparse-applicative
246+
base >=4.16 && <5,
247+
data-default,
248+
extra,
249+
ghcide,
250+
gitrev,
251+
hls-plugin-api,
252+
lsp,
253+
lsp-types,
254+
optparse-applicative,
254255

255256
other-modules:
256257
Arguments
257258
Paths_ghcide
258259

259-
autogen-modules: Paths_ghcide
260+
autogen-modules: Paths_ghcide
260261
default-extensions:
261262
LambdaCase
262263
OverloadedStrings
@@ -269,17 +270,12 @@ executable ghcide
269270
library ghcide-test-utils
270271
import: warnings
271272
visibility: public
272-
default-language: GHC2021
273-
273+
default-language: GHC2021
274274
hs-source-dirs: test/cabal
275-
exposed-modules:
276-
Development.IDE.Test.Runfiles
277-
278-
build-depends:
279-
base > 4.9 && < 5
280-
275+
exposed-modules: Development.IDE.Test.Runfiles
276+
build-depends: base >4.9 && <5
281277
default-extensions:
282-
LambdaCase
283-
OverloadedStrings
284-
RecordWildCards
285-
ViewPatterns
278+
LambdaCase
279+
OverloadedStrings
280+
RecordWildCards
281+
ViewPatterns

0 commit comments

Comments
 (0)