Skip to content

Commit fecd3ce

Browse files
authored
Merge branch 'master' into mpj/tidy-test-run
2 parents 2c441f0 + f5db150 commit fecd3ce

File tree

7 files changed

+37
-14
lines changed

7 files changed

+37
-14
lines changed

.github/workflows/caching.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
strategy:
8181
fail-fast: false
8282
matrix:
83-
# This list of GHC versions must fit to the list of GHC versions
84-
# specified in 'test.yml'
83+
# This list of GHC (including the "exclude" list) versions must match
84+
# to the list of GHC versions specified in 'test.yml'
8585
ghc: [ "9.4.3"
8686
, "9.4.2"
8787
, "9.2.5"
@@ -94,12 +94,12 @@ jobs:
9494
, "windows-latest"
9595
]
9696
exclude:
97-
- os: windows-latest
98-
ghc: '9.4.1'
99-
# Exclude until https://github.com/haskell/actions/issues/129
100-
# is resolved.
101-
- os: windows-latest
102-
ghc: '9.2.5'
97+
# Exclude until https://github.com/haskell/actions/issues/129
98+
# is resolved.
99+
- os: windows-latest
100+
ghc: '9.4.3' # Excluded because github action cannot install it
101+
- os: windows-latest
102+
ghc: '9.2.5'
103103

104104
steps:
105105
- uses: actions/checkout@v3

.github/workflows/nix.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ jobs:
8989

9090
- uses: cachix/install-nix-action@v18
9191
with:
92-
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
93-
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
9492
extra_nix_config: |
9593
experimental-features = nix-command flakes
9694
nix_path: nixpkgs=channel:nixos-unstable

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ jobs:
7676
# they are broken for good reasons, e.g. compiler is bugged
7777
# on that platform.
7878
exclude:
79-
- os: windows-latest
80-
ghc: '9.4.1'
8179
# Exclude until https://github.com/haskell/actions/issues/129
8280
# is resolved.
8381
- os: windows-latest

flake.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
url = "https://hackage.haskell.org/package/hiedb-0.4.2.0/hiedb-0.4.2.0.tar.gz";
6060
flake = false;
6161
};
62+
implicit-hie = {
63+
url = "https://hackage.haskell.org/package/implicit-hie-0.1.2.7/implicit-hie-0.1.2.7.tar.gz";
64+
flake = false;
65+
};
6266
};
6367
outputs =
6468
inputs@{ self, nixpkgs, flake-compat, flake-utils, gitignore, all-cabal-hashes-unpacked, ... }:
@@ -122,14 +126,20 @@
122126
# Patches don't apply
123127
github = overrideCabal hsuper.github (drv: { patches = []; });
124128
hiedb = hsuper.callCabal2nix "hiedb" inputs.hiedb {};
129+
implicit-hie = hsuper.callCabal2nix "implicit-hie" inputs.implicit-hie {};
125130

126131
# https://github.com/NixOS/nixpkgs/issues/140774
127132
ormolu =
128133
if final.system == "aarch64-darwin"
129134
then overrideCabal hsuper.ormolu (_: { enableSeparateBinOutput = false; })
130135
else hsuper.ormolu;
131136

132-
fourmolu = hself.callCabal2nix "fourmolu" inputs.fourmolu {};
137+
# Due to the following issue, fixity-th should be disabled, especially for darwin.
138+
# https://github.com/fourmolu/fourmolu/issues/238
139+
fourmolu =
140+
addBuildDepend
141+
(appendConfigureFlag (hself.callCabal2nix "fourmolu" inputs.fourmolu {}) "-f-fixity-th")
142+
hself.file-embed;
133143
};
134144

135145
hlsSources =

ghcide/ghcide.cabal

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ library
104104
ghc-paths,
105105
cryptohash-sha1 >=0.11.100 && <0.12,
106106
hie-bios ^>= 0.11.0,
107+
-- implicit-hie 0.1.3.0 introduced an unexpected behavioral change.
108+
-- https://github.com/Avi-D-coder/implicit-hie/issues/50
109+
-- to make sure ghcide behaves in a desirable way, we put implicit-hie
110+
-- fake dependency here.
111+
implicit-hie < 0.1.3,
107112
implicit-hie-cradle ^>= 0.3.0.5 || ^>= 0.5,
108113
base16-bytestring >=0.1.1 && <1.1
109114
if os(windows)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ library
4545
-- This is a lot of work for almost zero benefit, so we just allow more versions here
4646
-- and we eventually completely drop support for building HLS with stack.
4747
, Cabal ^>=3.2 || ^>=3.4 || ^>=3.6 || ^>= 3.8
48-
, Cabal-syntax ^>= 3.6
4948
, deepseq
5049
, directory
5150
, extra >=1.7.4

0 commit comments

Comments
 (0)