Skip to content

Commit 59dbf39

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 23bc8e1 commit 59dbf39

File tree

4 files changed

+17
-46
lines changed

4 files changed

+17
-46
lines changed

cabal.project

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,24 @@ 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:
5850
-- C++ is hard to distribute, especially on older GHCs
5951
-- See https://github.com/haskell/haskell-language-server/issues/3822
6052
text -simdutf,
61-
-- For GHC 9.4, older versions of entropy fail to build on Windows
62-
entropy >= 0.4.1.10,
63-
-- For GHC 9.4
64-
basement >= 0.0.15,
65-
-- For GHC 9.4
66-
hw-prim >= 0.6.3.2,
67-
hyphenation +embed,
68-
-- remove this when hlint sets ghc-lib to true by default
69-
-- https://github.com/ndmitchell/hlint/issues/1376
70-
hlint +ghc-lib,
7153
ghc-check -ghc-check-use-package-abis,
7254
ghc-lib-parser-ex -auto,
73-
stylish-haskell +ghc-lib,
74-
fourmolu -fixity-th,
75-
setup.happy == 1.20.1.1,
76-
happy == 1.20.1.1,
77-
filepath installed,
7855
-- Centos 7 comes with an old gcc version that doesn't know about
7956
-- the flag '-fopen-simd', which blocked the release 2.2.0.0.
8057
-- We want to be able to benefit from the performance optimisations
@@ -94,20 +71,23 @@ source-repository-package
9471
tag: 7a0af7a8fd38045fd15fb13445bdcc7085325460
9572
-- END DELETE
9673

97-
allow-newer:
98-
-- ghc-9.4
99-
ekg-json:base,
100-
ekg-wai:time,
74+
if impl(ghc >= 9.3)
75+
-- ekg packagess are old and unmaintained, but we
76+
-- don't rely on them for the mainline build, so
77+
-- this is okay
78+
allow-newer:
79+
ekg-json:base,
80+
ekg-wai:time,
10181

10282
if impl(ghc >= 9.5)
10383
allow-newer:
104-
-- ghc-9.6
105-
ekg-core:ghc-prim,
106-
stm-hamt:transformers,
84+
-- ekg packagess are old and unmaintained, but we
85+
-- don't rely on them for the mainline build, so
86+
-- this is okay
87+
ekg-core:ghc-prim
10788

10889
if impl(ghc >= 9.7)
10990
allow-newer:
110-
-- ghc-9.8
11191
base,
11292
template-haskell,
11393
ghc,
@@ -122,7 +102,6 @@ if impl(ghc >= 9.7)
122102
unix,
123103
deepseq,
124104

125-
if impl(ghc >= 9.7)
126105
repository head.hackage.ghc.haskell.org
127106
url: https://ghc.gitlab.haskell.org/head.hackage/
128107
secure: True

plugins/hls-hlint-plugin/hls-hlint-plugin.cabal

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

stack-lts21.yaml

Lines changed: 0 additions & 5 deletions
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 ]

stack.yaml

Lines changed: 0 additions & 3 deletions
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)