Skip to content

Commit e93f0fd

Browse files
mergify[bot]jneira
andauthored
Clean cabal project (backport #2097) (#2110)
* Clean cabal project (#2097) * Remove superflous things * Set index-state * Add ghc-api-compat and remove shake-bench * Correct comment about ghc-api-compat * Add specific project file for benchs * Use specific project file for benchmarks * Ensure we use lsp-1.3.0.1 * Use lsp-types-1.3.0.1 for stack * Use lsp-types-1.3.0.1 for default stack * Remove some more allow-newer * Use one cabal.project Co-authored-by: Pepe Iborra <pepeiborra@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 57ffd74) # Conflicts: # cabal.project * Resolve conflicts Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
1 parent ee37c51 commit e93f0fd

12 files changed

+17
-54
lines changed

cabal.project

+6-43
Original file line numberDiff line numberDiff line change
@@ -23,65 +23,28 @@ packages:
2323
./plugins/hls-module-name-plugin
2424
./plugins/hls-ormolu-plugin
2525
./plugins/hls-call-hierarchy-plugin
26+
2627
tests: true
2728

2829
package *
2930
ghc-options: -haddock
3031
test-show-details: direct
3132

32-
-- ghc-api-compat-8.6
33+
-- see https://gitlab.haskell.org/haskell/ghc-api-compat/-/issues/1#note_371055
3334
source-repository-package
3435
type: git
3536
location: https://github.com/hsyl20/ghc-api-compat
3637
tag: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
3738

3839
write-ghc-environment-files: never
3940

40-
index-state: 2021-08-01T00:00:00Z
41+
index-state: 2021-08-12T12:00:38Z
4142

4243
constraints:
43-
-- Diagrams doesn't support optparse-applicative >= 0.16 yet
44-
optparse-applicative < 0.16,
4544
hyphenation +embed
4645

4746

4847
allow-newer:
49-
active:base,
50-
assoc:base,
51-
cryptohash-md5:base,
52-
cryptohash-sha1:base,
53-
constraints-extras:template-haskell,
54-
data-tree-print:base,
55-
deepseq:base,
56-
dependent-sum:some,
57-
dependent-sum:constraints,
58-
diagrams-contrib:base,
59-
diagrams-contrib:lens,
60-
diagrams-contrib:random,
61-
diagrams-core:base,
62-
diagrams-core:lens,
63-
diagrams-lib:base,
64-
diagrams-lib:lens,
65-
diagrams-postscript:base,
66-
diagrams-postscript:lens,
67-
diagrams-svg:base,
68-
diagrams-svg:lens,
69-
dual-tree:base,
70-
-- Does this make any sense?
71-
entropy:Cabal,
72-
force-layout:base,
73-
force-layout:lens,
74-
floskell:ghc-prim,
75-
floskell:base,
76-
hashable:base,
77-
hslogger:base,
78-
monoid-extras:base,
79-
newtype-generics:base,
80-
parallel:base,
81-
regex-base:base,
82-
regex-tdfa:base,
83-
statestack:base,
84-
svg-builder:base,
85-
these:base,
86-
time-compat:base
87-
48+
-- for shake-bench
49+
Chart-diagrams:diagrams-core,
50+
SVGFonts:diagrams-core

ghcide/ghcide.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ library
6161
hls-plugin-api ^>= 1.2.0.0,
6262
lens,
6363
hiedb == 0.4.0.*,
64-
lsp-types >= 1.2 && < 1.4,
64+
lsp-types >= 1.3.0.1 && < 1.4,
6565
lsp == 1.2.*,
6666
mtl,
6767
network-uri,

stack-8.10.2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extra-deps:
6666
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
6767
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
6868
- lsp-1.2.0.1
69-
- lsp-types-1.3.0.0
69+
- lsp-types-1.3.0.1
7070
- lsp-test-0.14.0.1
7171

7272
configure-options:

stack-8.10.3.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extra-deps:
6666
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
6767
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
6868
- lsp-1.2.0.1
69-
- lsp-types-1.3.0.0
69+
- lsp-types-1.3.0.1
7070
- lsp-test-0.14.0.1
7171

7272
configure-options:

stack-8.10.4.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extra-deps:
6262
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
6363
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
6464
- lsp-1.2.0.1
65-
- lsp-types-1.3.0.0
65+
- lsp-types-1.3.0.1
6666
- lsp-test-0.14.0.1
6767

6868
# Enable these when supported by all formatters

stack-8.10.5.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extra-deps:
6464
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
6565
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
6666
- lsp-1.2.0.1
67-
- lsp-types-1.3.0.0
67+
- lsp-types-1.3.0.1
6868
- lsp-test-0.14.0.1
6969

7070
# Enable these when supported by all formatters

stack-8.6.4.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extra-deps:
103103
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
104104
- resourcet-1.2.3
105105
- lsp-1.2.0.1
106-
- lsp-types-1.3.0.0
106+
- lsp-types-1.3.0.1
107107
- lsp-test-0.14.0.1
108108

109109
flags:

stack-8.6.5.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extra-deps:
104104
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
105105
- resourcet-1.2.3
106106
- lsp-1.2.0.1
107-
- lsp-types-1.3.0.0
107+
- lsp-types-1.3.0.1
108108
- lsp-test-0.14.0.1
109109

110110
configure-options:

stack-8.8.3.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extra-deps:
8383
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
8484
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
8585
- lsp-1.2.0.1
86-
- lsp-types-1.3.0.0
86+
- lsp-types-1.3.0.1
8787
- lsp-test-0.14.0.1
8888

8989
configure-options:

stack-8.8.4.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extra-deps:
8080
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
8181
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
8282
- lsp-1.2.0.1
83-
- lsp-types-1.3.0.0
83+
- lsp-types-1.3.0.1
8484
- lsp-test-0.14.0.1
8585

8686
configure-options:

stack-9.0.1.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extra-deps:
5555
- retrie-1.0.0.0
5656
- some-1.0.2@sha256:3d460998df32ad7b93bf55657aeae988d97070155e71718b4bc75d0997ce9d62,2244
5757
- lsp-1.2.0.1
58-
- lsp-types-1.3.0.0
58+
- lsp-types-1.3.0.1
5959
- lsp-test-0.14.0.1
6060

6161
# Upstream patches for ghc-9.0.1 compatability

stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extra-deps:
5959
- some-1.0.1@sha256:26e5bab7276f48b25ea8660d3fd1166c0f20fd497dac879a40f408e23211f93e,2055
6060
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082
6161
- lsp-1.2.0.1
62-
- lsp-types-1.3.0.0
62+
- lsp-types-1.3.0.1
6363
- lsp-test-0.14.0.1
6464

6565
configure-options:

0 commit comments

Comments
 (0)