Skip to content

Commit

Permalink
support ghc 9.4 and 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kokobd committed Feb 12, 2024
1 parent 7452c2b commit fb43d13
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 22 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ jobs:
- ubuntu-latest
- macos-latest
ghc:
- "8.10.7"
- "9.0.2"
- "9.2.4"
- "9.2.8"
- "9.4.8"
- "9.6.4"
exclude:
# precompiled 9.0 and 9.2 don't have docs
- os: macos-latest
ghc: "9.0.2"
# precompiled 9.0 and 9.2 don't have docs on MacOS
- os: macos-latest
ghc: "9.2.4"
runs-on: ${{ matrix.os }}
Expand All @@ -31,7 +29,7 @@ jobs:
ghcup list
ghcup rm ghc ${{ matrix.ghc }} || true
ghcup install ghc ${{ matrix.ghc }} --set
ghcup install cabal 3.6.2.0 --set
ghcup install cabal 3.10.2.1 --set
cabal update
- name: Build
run: |
Expand Down
4 changes: 2 additions & 2 deletions cabal-hoogle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ library
, optparse-applicative >=0.16 && <1
, regex-tdfa ^>=1.3.1
, string-interpolate ^>=0.3.1.2
, text ^>=1.2.4
, text ^>=1.2.4 || ^>=2.0
, time >=1.10 && <2
, transformers ^>=0.5.6
, transformers ^>=0.5.6 || ^>=0.6
, typed-process ^>=0.2.10

default-language: Haskell2010
Expand Down
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
packages: ./
index-state: 2023-06-05T00:00:00Z
30 changes: 24 additions & 6 deletions flake.lock

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

12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
compilers = [ "ghc8107" "ghc926" "ghc944" ];
defaultCompiler = "ghc8107";
compilers = [ "ghc92" "ghc94" "ghc96" ];
defaultCompiler = "ghc94";

mkShell = compiler: pkgs.mkShell {
buildInputs = with pkgs; [
Expand All @@ -20,10 +20,10 @@
haskell.compiler.${compiler}
ormolu
miniserve
] ++ (with haskell.packages.${compiler}; [
haskell-language-server
cabal-fmt
]);
] ++ (with haskell.packages.${compiler};
(lib.lists.optional (compiler != "ghc96") haskell-language-server) ++
[ cabal-fmt ghcid ]
);
shellHook = ''
export CABAL_DIR=$(pwd)/.cabal
export CABAL_CONFIG=$(pwd)/.cabal/config
Expand Down

0 comments on commit fb43d13

Please sign in to comment.