Skip to content

Commit 75de192

Browse files
committed
Remove ghc-api source snapshot
We can replace the source snapshot with Cabal conditions. This will unblock Hackage uploads until #2128 lands
1 parent 1cf1ae6 commit 75de192

17 files changed

+87
-41
lines changed

cabal-ghc901.project

-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ source-repository-package
3939
tag: b6245884ae83e00dd2b5261762549b37390179f8
4040
-- https://github.com/lspitzner/czipwith/pull/2
4141

42-
source-repository-package
43-
type: git
44-
location: https://github.com/hsyl20/ghc-api-compat
45-
tag: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
46-
4742
source-repository-package
4843
type: git
4944
location: https://github.com/anka-213/th-extras

cabal.project

+1-7
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,9 @@ package *
3131
ghc-options: -haddock
3232
test-show-details: direct
3333

34-
-- see https://gitlab.haskell.org/haskell/ghc-api-compat/-/issues/1#note_371055
35-
source-repository-package
36-
type: git
37-
location: https://github.com/hsyl20/ghc-api-compat
38-
tag: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
39-
4034
write-ghc-environment-files: never
4135

42-
index-state: 2021-08-12T12:00:38Z
36+
index-state: 2021-08-30T12:00:38Z
4337

4438
constraints:
4539
hyphenation +embed

ghcide/ghcide.cabal

+10-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ library
9999
ghc >= 8.6,
100100
ghc-check >=0.5.0.4,
101101
ghc-paths,
102-
ghc-api-compat,
103102
cryptohash-sha1 >=0.11.100 && <0.12,
104103
hie-bios >= 0.7.1 && < 0.9.0,
105104
implicit-hie-cradle >= 0.3.0.5 && < 0.4,
@@ -111,6 +110,16 @@ library
111110
build-depends:
112111
unix
113112

113+
if impl(ghc < 8.10.5)
114+
build-depends:
115+
ghc-api-compat ==8.6
116+
elif impl(ghc == 8.10.5)
117+
build-depends:
118+
ghc-api-compat ==8.10.5
119+
elif impl(ghc > 8.10.5)
120+
build-depends:
121+
ghc-api-compat ==8.10.6
122+
114123
default-extensions:
115124
ApplicativeDo
116125
BangPatterns

haskell-language-server.cabal

+10-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ executable haskell-language-server
338338
, cryptohash-sha1
339339
, deepseq
340340
, ghc
341-
, ghc-api-compat
342341
, ghc-boot-th
343342
, ghcide
344343
, hashable
@@ -361,6 +360,16 @@ executable haskell-language-server
361360
, transformers
362361
, unordered-containers
363362

363+
if impl(ghc < 8.10.5)
364+
build-depends:
365+
ghc-api-compat ==8.6
366+
elif impl(ghc == 8.10.5)
367+
build-depends:
368+
ghc-api-compat ==8.10.5
369+
elif impl(ghc > 8.10.5)
370+
build-depends:
371+
ghc-api-compat ==8.10.6
372+
364373
default-language: Haskell2010
365374
default-extensions: DataKinds, TypeOperators
366375

hls-plugin-api/hls-plugin-api.cabal

+10-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ library
4444
, Diff ^>=0.4.0
4545
, dlist
4646
, ghc
47-
, ghc-api-compat
4847
, hashable
4948
, hls-graph ^>=1.4
5049
, hslogger
@@ -57,6 +56,16 @@ library
5756
, text
5857
, unordered-containers
5958

59+
if impl(ghc < 8.10.5)
60+
build-depends:
61+
ghc-api-compat ==8.6
62+
elif impl(ghc == 8.10.5)
63+
build-depends:
64+
ghc-api-compat ==8.10.5
65+
elif impl(ghc > 8.10.5)
66+
build-depends:
67+
ghc-api-compat ==8.10.6
68+
6069
if os(windows)
6170
build-depends: Win32
6271

plugins/hls-call-hierarchy-plugin/hls-call-hierarchy-plugin.cabal

+10-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ library
2727
, containers
2828
, extra
2929
, ghc
30-
, ghc-api-compat
3130
, ghcide ^>=1.4.1
3231
, hiedb
3332
, hls-plugin-api ^>=1.2
@@ -40,6 +39,16 @@ library
4039
default-language: Haskell2010
4140
default-extensions: DataKinds
4241

42+
if impl(ghc < 8.10.5)
43+
build-depends:
44+
ghc-api-compat ==8.6
45+
elif impl(ghc == 8.10.5)
46+
build-depends:
47+
ghc-api-compat ==8.10.5
48+
elif impl(ghc > 8.10.5)
49+
build-depends:
50+
ghc-api-compat ==8.10.6
51+
4352
test-suite tests
4453
type: exitcode-stdio-1.0
4554
default-language: Haskell2010

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ library
2828
, base >=4.12 && <5
2929
, containers
3030
, ghc
31-
, ghc-api-compat
3231
, ghc-exactprint
3332
, ghcide >=1.2 && <1.5
3433
, hls-plugin-api >=1.1 && <1.3
@@ -37,6 +36,16 @@ library
3736
, text
3837
, transformers
3938

39+
if impl(ghc < 8.10.5)
40+
build-depends:
41+
ghc-api-compat ==8.6
42+
elif impl(ghc == 8.10.5)
43+
build-depends:
44+
ghc-api-compat ==8.10.5
45+
elif impl(ghc > 8.10.5)
46+
build-depends:
47+
ghc-api-compat ==8.10.6
48+
4049
default-language: Haskell2010
4150
default-extensions:
4251
DataKinds

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,23 @@ library
1919
, containers
2020
, deepseq
2121
, ghc
22-
, ghc-api-compat
2322
, ghcide ^>=1.4
2423
, hls-graph
2524
, hls-plugin-api >=1.1 && <1.3
2625
, lsp
2726
, text
2827
, unordered-containers
2928

29+
if impl(ghc < 8.10.5)
30+
build-depends:
31+
ghc-api-compat ==8.6
32+
elif impl(ghc == 8.10.5)
33+
build-depends:
34+
ghc-api-compat ==8.10.5
35+
elif impl(ghc > 8.10.5)
36+
build-depends:
37+
ghc-api-compat ==8.10.6
38+
3039
default-language: Haskell2010
3140
default-extensions:
3241
DataKinds

plugins/hls-ormolu-plugin/hls-ormolu-plugin.cabal

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ library
2323
, base >=4.12 && <5
2424
, filepath
2525
, ghc
26-
, ghc-api-compat
2726
, ghc-boot-th
2827
, ghcide >=1.2 && <1.5
2928
, hls-plugin-api >=1.1 && <1.3
@@ -34,6 +33,16 @@ library
3433

3534
default-language: Haskell2010
3635

36+
if impl(ghc < 8.10.5)
37+
build-depends:
38+
ghc-api-compat ==8.6
39+
elif impl(ghc == 8.10.5)
40+
build-depends:
41+
ghc-api-compat ==8.10.5
42+
elif impl(ghc > 8.10.5)
43+
build-depends:
44+
ghc-api-compat ==8.10.6
45+
3746
test-suite tests
3847
type: exitcode-stdio-1.0
3948
default-language: Haskell2010

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ library
2121
, directory
2222
, extra
2323
, ghc
24-
, ghc-api-compat
2524
, ghcide >=1.2 && <1.5
2625
, hashable
2726
, hls-plugin-api >=1.1 && <1.3
@@ -33,6 +32,16 @@ library
3332
, transformers
3433
, unordered-containers
3534

35+
if impl(ghc < 8.10.5)
36+
build-depends:
37+
ghc-api-compat ==8.6
38+
elif impl(ghc == 8.10.5)
39+
build-depends:
40+
ghc-api-compat ==8.10.5
41+
elif impl(ghc > 8.10.5)
42+
build-depends:
43+
ghc-api-compat ==8.10.6
44+
3645
default-language: Haskell2010
3746
default-extensions:
3847
DataKinds

stack-8.10.3.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ extra-deps:
3838
- data-tree-print-0.1.0.2@rev:2
3939
- floskell-0.10.4
4040
- fourmolu-0.3.0.0
41-
- # ghc-api-compat-8.6
42-
github: hsyl20/ghc-api-compat
43-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
41+
- ghc-api-compat-8.6
4442
- ghc-check-0.5.0.4
4543
- ghc-exactprint-0.6.4
4644
- ghc-lib-8.10.4.20210206

stack-8.10.5.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ extra-deps:
4141
- data-tree-print-0.1.0.2@rev:2
4242
- floskell-0.10.5
4343
- fourmolu-0.3.0.0
44-
- # ghc-api-compat-8.6
45-
github: hsyl20/ghc-api-compat
46-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
44+
- ghc-api-compat-8.10.5
4745
- ghc-check-0.5.0.4
4846
- ghc-exactprint-0.6.4
4947
- ghc-source-gen-0.4.1.0

stack-8.6.4.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ extra-deps:
4545
- floskell-0.10.4
4646
- fourmolu-0.3.0.0
4747
- fuzzy-0.1.0.0
48-
- # ghc-api-compat-8.6
49-
github: hsyl20/ghc-api-compat
50-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
48+
- ghc-api-compat-8.6
5149
- ghc-check-0.5.0.4
5250
- ghc-events-0.13.0
5351
- ghc-exactprint-0.6.4

stack-8.6.5.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ extra-deps:
4646
- floskell-0.10.4
4747
- fourmolu-0.3.0.0
4848
- fuzzy-0.1.0.0
49-
- # ghc-api-compat-8.6
50-
github: hsyl20/ghc-api-compat
51-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
49+
- ghc-api-compat-8.6
5250
- ghc-check-0.5.0.4
5351
- ghc-events-0.13.0
5452
- ghc-exactprint-0.6.4

stack-8.8.3.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ extra-deps:
4040
- constrained-dynamic-0.1.0.0
4141
- floskell-0.10.4
4242
- fourmolu-0.3.0.0
43-
- # ghc-api-compat-8.6
44-
github: hsyl20/ghc-api-compat
45-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
43+
- ghc-api-compat-8.6
4644
- ghc-check-0.5.0.4
4745
- ghc-exactprint-0.6.4
4846
- ghc-lib-8.10.4.20210206

stack-8.8.4.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ extra-deps:
4040
- constrained-dynamic-0.1.0.0
4141
- floskell-0.10.4
4242
- fourmolu-0.3.0.0
43-
- # ghc-api-compat-8.6
44-
github: hsyl20/ghc-api-compat
45-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
43+
- ghc-api-compat-8.6
4644
- ghc-check-0.5.0.4
4745
- ghc-exactprint-0.6.4
4846
- ghc-lib-8.10.4.20210206

stack-9.0.1.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ extra-deps:
5959
commit: b6245884ae83e00dd2b5261762549b37390179f8
6060
# https://github.com/lspitzner/czipwith/pull/2
6161

62-
- github: hsyl20/ghc-api-compat
63-
commit: 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15
64-
6562
- github: anka-213/th-extras
6663
commit: 57a97b4df128eb7b360e8ab9c5759392de8d1659
6764
# https://github.com/mokus0/th-extras/pull/8

0 commit comments

Comments
 (0)