Skip to content

Commit

Permalink
GHC minor bump in CI (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo authored Jun 1, 2024
2 parents 18f43bd + ee2b68a commit e52e9f7
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["8.10.7", "9.6.4", "9.8.1"]
cabal: ["3.10.2.1"]
ghc: ["8.10.7", "9.6.5", "9.8.2"]
cabal: ["3.10.3.0"]
os: [ubuntu-latest]
env:
# Modify this value to "invalidate" the Cabal cache.
Expand Down
84 changes: 60 additions & 24 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
};
# for cabal-docspec
cabal-extras = {
url = "github:phadej/cabal-extras/cabal-docspec-0.0.0.20231219";
url = "github:phadej/cabal-extras/cabal-docspec-0.0.0.20240414";
flake = false;
};
gentle-introduction = {
Expand Down
4 changes: 2 additions & 2 deletions nix/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ let
};
hsPkgs = haskell-nix.cabalProject {
src = ./..;
compiler-nix-name = "ghc964";
compiler-nix-name = "ghc965";
flake.variants = {
ghc810 = { compiler-nix-name = lib.mkForce "ghc8107"; };
ghc98 = { compiler-nix-name = lib.mkForce "ghc981"; };
ghc98 = { compiler-nix-name = lib.mkForce "ghc982"; };
};
inputMap = {
"https://chap.intersectmbo.org/" = inputs.CHaP;
Expand Down
8 changes: 1 addition & 7 deletions nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@ hsPkgs.shellFor {
# version as used in hsPkgs.
tools = {
haskell-language-server = {
src = inputs.haskellNix.inputs."hls-2.6";
src = inputs.haskellNix.inputs."hls-2.8";
configureArgs = "--disable-benchmarks --disable-tests";
modules = [{
packages.ghcide.patches = [
# https://github.com/haskell/haskell-language-server/issues/4046#issuecomment-1926242056
./ghcide-workaround.diff
];
}];
};
};

Expand Down
21 changes: 6 additions & 15 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inputs: final: prev:

let
inherit (final) lib;
tool-index-state = "2024-04-01T00:00:00Z";
tool-index-state = "2024-05-31T00:00:00Z";
tool = name: version: other:
final.haskell-nix.tool final.hsPkgs.args.compiler-nix-name name ({
version = version;
Expand Down Expand Up @@ -37,34 +37,25 @@ in
}).cabal-install.components.exes.cabal;

cabal-docspec = tool "cabal-docspec" "git" {
compiler-nix-name = "ghc98";
src = inputs.cabal-extras;
cabalProject = ''
packages: peura cabal-docspec ${inputs.gentle-introduction}
'';
cabalProjectLocal = ''
allow-newer: cabal-docspec:*
, gentle-introduction:*
, peura:*
, paths:*
constraints: directory <1.3.8.0
packages: peura cabal-docspec ${inputs.gentle-introduction} paths-0.2.0.0
'';
};

cabal-hoogle = tool "cabal-hoogle" "git" {
src = final.fetchFromGitHub {
owner = "kokobd";
repo = "cabal-hoogle";
rev = "7452c2b1dbdae4eb675d280ed99ec135293adc13";
hash = "sha256-w7PkNZfHJw1291c2nfviENSXykYpNV+4i3FmbMJqSMs=";
rev = "f3a230de36a08920f8ad47766b0528b9229b3ce6";
hash = "sha256-WiSq1uBjuSCEW7vp/81a1PVdo/7pf86dqy+R7lDCOdY=";
};
cabalProjectLocal = ''
allow-newer: cabal-hoogle:*
'';
};

stylish-haskell = tool "stylish-haskell" "0.14.6.0" { };

cabal-gild = tool "cabal-gild" "1.3.0.1" { };
cabal-gild = tool "cabal-gild" "1.3.1.2" { };

haskellBuildUtils = prev.haskellBuildUtils.override {
inherit (final.hsPkgs.args) compiler-nix-name;
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs/haddocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GHC_VERSION=$(ghc --numeric-version)
if ! command -v cabal-docspec &> /dev/null
then
# cabal-docspec. Download binary
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20231219/cabal-docspec-0.0.0.20231219-x86_64-linux.xz > cabal-docspec.xz
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20240414/cabal-docspec-0.0.0.20240414-x86_64-linux.xz > cabal-docspec.xz
# this doesn't seem to exist in GH runners?
mkdir -p "$HOME"/.local/bin
xz -d < cabal-docspec.xz > "$HOME"/.local/bin/cabal-docspec
Expand Down

0 comments on commit e52e9f7

Please sign in to comment.