Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 51b9739

Browse files
authored
Merge pull request #1771 from jneira/cabal-helper-1.1
Use cabal-helper 1.1
2 parents e68018a + ae315a3 commit 51b9739

11 files changed

+57
-45
lines changed

cabal.project

+3-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ packages:
44

55
-- ./submodules/HaRe
66

7-
source-repository-package
8-
type: git
9-
location: https://github.com/DanielG/cabal-helper.git
10-
tag: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
11-
127
tests: true
138

149
package haskell-ide-engine
@@ -17,8 +12,9 @@ package haskell-ide-engine
1712
-- Match the flag settings we use in stac builds
1813
constraints:
1914
haskell-ide-engine +pedantic,
20-
hie-plugin-api +pedantic
15+
hie-plugin-api +pedantic,
16+
ghc-lib-parser == 8.8.2.20200205
2117

2218
write-ghc-environment-files: never
2319

24-
index-state: 2020-05-10T18:26:01Z
20+
index-state: 2020-05-12T16:28:12Z

haskell-ide-engine.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ library
6161
, brittany
6262
, bytestring
6363
, Cabal
64-
, cabal-helper >= 1.0 && < 1.1
64+
, cabal-helper >= 1.1 && < 1.2
6565
, containers
6666
, data-default
6767
, directory

src/Haskell/Ide/Engine/Plugin/Package.hs

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import qualified Data.Text.Encoding as T
2727
import Data.Maybe
2828
#if __GLASGOW_HASKELL__ < 808
2929
import Data.Monoid ((<>))
30-
#else
30+
#endif
31+
#if MIN_VERSION_Cabal(3,0,0)
3132
import qualified Data.Set as S
3233
#endif
3334
#if MIN_VERSION_Cabal(2,2,0)
@@ -301,7 +302,7 @@ editCabalPackage file modulePath pkgName fileMap = do
301302
-- Add it to the bottom of the dependencies list
302303
-- TODO: we could sort the depencies and then insert it,
303304
-- or insert it in order iff the list is already sorted.
304-
#if __GLASGOW_HASKELL__ >= 808
305+
#if MIN_VERSION_Cabal(3,0,0)
305306
newDeps = oldDeps ++ [Dependency (mkPackageName (T.unpack dep)) anyVersion S.empty]
306307
#else
307308
newDeps = oldDeps ++ [Dependency (mkPackageName (T.unpack dep)) anyVersion]

stack-8.4.2.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ extra-deps:
1313
- bifunctors-5.5.6
1414
- brittany-0.12.1.1
1515
- bytestring-trie-0.2.5.0
16-
# - cabal-helper-1.0.0.0
17-
- github: DanielG/cabal-helper
18-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
16+
- Cabal-3.0.2.0
17+
- cabal-doctest-1.0.8
18+
- cabal-helper-1.1.0.0
1919
- cabal-plan-0.5.0.0
2020
- connection-0.3.1 # for network and network-bsd
2121
- constrained-dynamic-0.1.0.0
@@ -27,16 +27,18 @@ extra-deps:
2727
- ghc-exactprint-0.6.2 # for HaRe
2828
- ghc-lib-parser-8.8.2.20200205
2929
- ghc-lib-parser-ex-8.8.5.3
30-
- haddock-api-2.20.0
30+
- ghc-paths-0.1.0.12
31+
- haddock-api-2.20.0@rev:1
3132
- haddock-library-1.6.0
33+
- happy-1.19.12
3234
- haskell-lsp-0.20.0.0
3335
- haskell-lsp-types-0.20.0.0
3436
- haskell-src-exts-1.22.0
3537
- haskell-src-exts-util-0.2.5
3638
- hie-bios-0.5.0
3739
- hlint-2.2.11
3840
- hoogle-5.0.17.15
39-
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
41+
- hsimport-0.11.0@rev:2
4042
- hslogger-1.3.1.0
4143
- invariant-0.5.3
4244
- lens-4.18.1
@@ -77,6 +79,8 @@ flags:
7779
hie-plugin-api:
7880
pedantic: true
7981

82+
# allow-newer: true
83+
8084
nix:
8185
packages: [ icu libcxx zlib ]
8286

stack-8.4.3.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ extra-deps:
1818
- bifunctors-5.5.7
1919
- brittany-0.12.1.1
2020
- bytestring-trie-0.2.5.0
21-
# - cabal-helper-1.0.0.0
22-
- github: DanielG/cabal-helper
23-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
21+
- Cabal-3.0.2.0
22+
- cabal-doctest-1.0.8
23+
- cabal-helper-1.1.0.0
2424
- cabal-plan-0.6.2.0
2525
- connection-0.3.1 # for network and network-bsd
2626
- constrained-dynamic-0.1.0.0
@@ -33,16 +33,18 @@ extra-deps:
3333
- ghc-exactprint-0.6.2 # for HaRe
3434
- ghc-lib-parser-8.8.2.20200205
3535
- ghc-lib-parser-ex-8.8.5.3
36-
- haddock-api-2.20.0
36+
- ghc-paths-0.1.0.12
37+
- haddock-api-2.20.0@rev:1
3738
- haddock-library-1.6.0
3839
- haskell-lsp-0.20.0.0
3940
- haskell-lsp-types-0.20.0.0
4041
- haskell-src-exts-1.22.0
4142
- haskell-src-exts-util-0.2.5
43+
- happy-1.19.12
4244
- hie-bios-0.5.0
4345
- hlint-2.2.11
4446
- hoogle-5.0.17.15
45-
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
47+
- hsimport-0.11.0@rev:2
4648
- hslogger-1.3.1.0
4749
- hspec-2.7.1
4850
- hspec-core-2.7.1
@@ -95,6 +97,8 @@ flags:
9597
hie-plugin-api:
9698
pedantic: true
9799

100+
# allow-newer: true
101+
98102
nix:
99103
packages: [icu libcxx zlib]
100104

stack-8.4.4.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ extra-deps:
1212
- bifunctors-5.5.6
1313
- brittany-0.12.1.1
1414
- bytestring-trie-0.2.5.0
15-
# - cabal-helper-1.0.0.0
16-
- github: DanielG/cabal-helper
17-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
15+
- Cabal-3.0.2.0
16+
- cabal-doctest-1.0.8
17+
- cabal-helper-1.1.0.0
1818
- cabal-plan-0.5.0.0
1919
- connection-0.3.1 # for network and network-bsd
2020
- constrained-dynamic-0.1.0.0
@@ -26,16 +26,18 @@ extra-deps:
2626
- ghc-exactprint-0.6.2 # for HaRe
2727
- ghc-lib-parser-8.8.2.20200205
2828
- ghc-lib-parser-ex-8.8.5.3
29-
- haddock-api-2.20.0
29+
- ghc-paths-0.1.0.12
30+
- haddock-api-2.20.0@rev:1
3031
- haddock-library-1.6.0
32+
- happy-1.19.12
3133
- haskell-lsp-0.20.0.0
3234
- haskell-lsp-types-0.20.0.0
3335
- haskell-src-exts-1.22.0
3436
- haskell-src-exts-util-0.2.5
3537
- hie-bios-0.5.0
3638
- hlint-2.2.11
3739
- hoogle-5.0.17.15
38-
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
40+
- hsimport-0.11.0@rev:2
3941
- hslogger-1.3.1.0
4042
- invariant-0.5.3
4143
- lens-4.18.1
@@ -75,6 +77,8 @@ flags:
7577
hie-plugin-api:
7678
pedantic: true
7779

80+
# allow-newer: true
81+
7882
nix:
7983
packages: [icu libcxx zlib]
8084

stack-8.6.4.yaml

+11-5
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,29 @@ extra-deps:
1111
- brittany-0.12.1.1
1212
- butcher-1.3.2.1
1313
- bytestring-trie-0.2.5.0
14-
# - cabal-helper-1.0.0.0
15-
- github: DanielG/cabal-helper
16-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
14+
- Cabal-3.0.2.0
15+
- cabal-doctest-1.0.8
16+
- cabal-helper-1.1.0.0
1717
- cabal-plan-0.5.0.0
1818
- constrained-dynamic-0.1.0.0
1919
- extra-1.6.21
2020
- floskell-0.10.2
2121
- ghc-exactprint-0.6.2 # for HaRe
2222
- ghc-lib-parser-8.8.2.20200205
2323
- ghc-lib-parser-ex-8.8.5.3
24-
- haddock-api-2.22.0
24+
- ghc-paths-0.1.0.12
25+
- haddock-api-2.22.0@rev:1
26+
- happy-1.19.12
2527
- haskell-lsp-0.20.0.0
2628
- haskell-lsp-types-0.20.0.0
2729
- haskell-src-exts-1.22.0
2830
- hie-bios-0.5.0
2931
- hlint-2.2.11
3032
- hoogle-5.0.17.15
31-
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
33+
- hsimport-0.11.0@rev:2
34+
- lens-4.18
3235
- lsp-test-0.10.1.0
36+
- microlens-th-0.4.2.3@rev:1
3337
- monad-dijkstra-0.1.1.2@rev:1
3438
- monad-memo-0.4.1
3539
- multistate-0.8.0.1
@@ -39,7 +43,9 @@ extra-deps:
3943
- rope-utf16-splay-0.3.1.0
4044
- syz-0.2.0.0
4145
- temporary-1.2.1.1
46+
- th-abstraction-0.3.1.0
4247
- time-compat-1.9.2.2
48+
- type-equality-1
4349
- unix-compat-0.5.2
4450
- unliftio-0.2.12.1
4551
- unliftio-core-0.2.0.1

stack-8.6.5.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ extra-deps:
1313
- base-compat-0.11.1
1414
- brittany-0.12.1.1
1515
- bytestring-trie-0.2.5.0
16-
# - cabal-helper-1.0.0.0
17-
- github: DanielG/cabal-helper
18-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
16+
- Cabal-3.0.2.0
17+
- cabal-helper-1.1.0.0
1918
- cabal-plan-0.6.2.0
2019
- clock-0.7.2
2120
- constrained-dynamic-0.1.0.0
@@ -24,15 +23,16 @@ extra-deps:
2423
- ghc-exactprint-0.6.2 # for HaRe
2524
- ghc-lib-parser-8.8.2.20200205
2625
- ghc-lib-parser-ex-8.8.5.3
27-
- haddock-api-2.22.0
26+
- haddock-api-2.22.0@rev:1
2827
- haskell-lsp-0.20.0.0
2928
- haskell-lsp-types-0.20.0.0
3029
- haskell-src-exts-1.22.0
3130
- hie-bios-0.5.0
3231
- hlint-2.2.11
3332
- hoogle-5.0.17.15
34-
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
33+
- hsimport-0.11.0@rev:2
3534
- indexed-profunctors-0.1
35+
- lens-4.18
3636
- lsp-test-0.10.1.0
3737
- monad-dijkstra-0.1.1.2
3838
- optics-core-0.2
@@ -43,6 +43,7 @@ extra-deps:
4343
- semialign-1.1
4444
- temporary-1.2.1.1
4545
- topograph-1
46+
- type-equality-1
4647
- unliftio-0.2.12.1
4748
- unliftio-core-0.2.0.1
4849

stack-8.8.2.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ extra-deps:
99
- apply-refact-0.7.0.0
1010
- brittany-0.12.1.1
1111
- bytestring-trie-0.2.5.0
12-
# - cabal-helper-1.0.0.0
13-
- github: DanielG/cabal-helper
14-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
12+
- Cabal-3.0.2.0
13+
- cabal-helper-1.1.0.0
1514
- clock-0.7.2
1615
- constrained-dynamic-0.1.0.0
1716
- floskell-0.10.2
@@ -25,7 +24,7 @@ extra-deps:
2524
- hie-bios-0.5.0
2625
- hlint-2.2.11
2726
- hoogle-5.0.17.15
28-
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
27+
- hsimport-0.11.0@rev:2
2928
- ilist-0.3.1.0
3029
- monad-dijkstra-0.1.1.2
3130
- ormolu-0.0.3.1

stack-8.8.3.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ extra-deps:
88

99
- apply-refact-0.7.0.0
1010
- bytestring-trie-0.2.5.0@rev:1
11-
# - cabal-helper-1.0.0.0
12-
- github: DanielG/cabal-helper
13-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
11+
- Cabal-3.0.2.0
12+
- cabal-helper-1.1.0.0
1413
- clock-0.7.2
1514
- constrained-dynamic-0.1.0.0
1615
- floskell-0.10.2

stack.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ extra-deps:
99

1010
- apply-refact-0.7.0.0
1111
- bytestring-trie-0.2.5.0
12-
# - cabal-helper-1.0.0.0
13-
- github: DanielG/cabal-helper
14-
commit: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
12+
- cabal-helper-1.1.0.0
1513
- clock-0.7.2
1614
- constrained-dynamic-0.1.0.0
1715
- floskell-0.10.2

0 commit comments

Comments
 (0)