Skip to content

Commit a42d3a0

Browse files
committed
Simplify cabal.project
- entropy has had bounds revised in - basement/hw-prim bounds empirically unnecessariy - hyphenation was for wingman - bound hlint to a version that uses ghc-lib by default - stylish-haskell has never had a ghc-lib flag - none of the versions of fourmolu that we use have a fixity-th flag - remove some other things that lack justification speculatively
1 parent 5580ffc commit a42d3a0

File tree

4 files changed

+17
-46
lines changed

4 files changed

+17
-46
lines changed

Diff for: cabal.project

+16-37
Original file line numberDiff line numberDiff line change
@@ -34,44 +34,21 @@ packages:
3434
./plugins/hls-refactor-plugin
3535
./plugins/hls-overloaded-record-dot-plugin
3636

37-
-- Standard location for temporary packages needed for particular environments
38-
-- For example it is used in the project gitlab mirror to help in the MAcOS M1 build script
39-
-- See https://github.com/haskell/haskell-language-server/blob/master/.gitlab-ci.yml
40-
optional-packages: vendored/*/*.cabal
37+
index-state: 2023-10-06T06:12:29Z
4138

4239
tests: True
40+
test-show-details: direct
4341

44-
-- mfsolve has duplicate instances in its test suite
45-
-- See: https://github.com/kuribas/mfsolve/issues/8
46-
package mfsolve
47-
tests: False
48-
49-
package *
50-
ghc-options: -haddock
51-
test-show-details: direct
42+
benchmarks: True
5243

5344
write-ghc-environment-files: never
5445

55-
index-state: 2023-10-06T06:12:29Z
46+
package *
47+
ghc-options: -haddock
5648

5749
constraints:
58-
-- For GHC 9.4, older versions of entropy fail to build on Windows
59-
entropy >= 0.4.1.10,
60-
-- For GHC 9.4
61-
basement >= 0.0.15,
62-
-- For GHC 9.4
63-
hw-prim >= 0.6.3.2,
64-
hyphenation +embed,
65-
-- remove this when hlint sets ghc-lib to true by default
66-
-- https://github.com/ndmitchell/hlint/issues/1376
67-
hlint +ghc-lib,
6850
ghc-check -ghc-check-use-package-abis,
6951
ghc-lib-parser-ex -auto,
70-
stylish-haskell +ghc-lib,
71-
fourmolu -fixity-th,
72-
setup.happy == 1.20.1.1,
73-
happy == 1.20.1.1,
74-
filepath installed,
7552
-- Centos 7 comes with an old gcc version that doesn't know about
7653
-- the flag '-fopen-simd', which blocked the release 2.2.0.0.
7754
-- We want to be able to benefit from the performance optimisations
@@ -91,20 +68,23 @@ source-repository-package
9168
tag: 7a0af7a8fd38045fd15fb13445bdcc7085325460
9269
-- END DELETE
9370

94-
allow-newer:
95-
-- ghc-9.4
96-
ekg-json:base,
97-
ekg-wai:time,
71+
if impl(ghc >= 9.3)
72+
-- ekg packagess are old and unmaintained, but we
73+
-- don't rely on them for the mainline build, so
74+
-- this is okay
75+
allow-newer:
76+
ekg-json:base,
77+
ekg-wai:time,
9878

9979
if impl(ghc >= 9.5)
10080
allow-newer:
101-
-- ghc-9.6
102-
ekg-core:ghc-prim,
103-
stm-hamt:transformers,
81+
-- ekg packagess are old and unmaintained, but we
82+
-- don't rely on them for the mainline build, so
83+
-- this is okay
84+
ekg-core:ghc-prim
10485

10586
if impl(ghc >= 9.7)
10687
allow-newer:
107-
-- ghc-9.8
10888
base,
10989
template-haskell,
11090
ghc,
@@ -119,7 +99,6 @@ if impl(ghc >= 9.7)
11999
unix,
120100
deepseq,
121101

122-
if impl(ghc >= 9.7)
123102
repository head.hackage.ghc.haskell.org
124103
url: https://ghc.gitlab.haskell.org/head.hackage/
125104
secure: True

Diff for: plugins/hls-hlint-plugin/hls-hlint-plugin.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ library
5252
, ghc-exactprint >=0.6.3.4
5353
, ghcide == 2.3.0.0
5454
, hashable
55-
, hlint < 3.7
55+
, hlint >= 3.5 && < 3.7
5656
, hls-plugin-api == 2.3.0.0
5757
, lens
5858
, lsp

Diff for: stack-lts21.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ flags:
6666
pedantic: true
6767
retrie:
6868
BuildExecutable: false
69-
# Stack doesn't support automatic flags.
70-
hyphenation:
71-
embed: true
72-
stylish-haskell:
73-
ghc-lib: true
7469

7570
nix:
7671
packages: [ icu libcxx zlib ]

Diff for: stack.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ flags:
6767
pedantic: true
6868
retrie:
6969
BuildExecutable: false
70-
# Stack doesn't support automatic flags.
71-
hyphenation:
72-
embed: true
7370

7471
nix:
7572
packages: [ icu libcxx zlib ]

0 commit comments

Comments
 (0)