Skip to content

Commit

Permalink
[chore] compatibility with ghc ghc 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV committed May 29, 2024
1 parent 95ee8b5 commit 301c88a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 75 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake check -Lv --allow-import-from-derivation --fallback --accept-flake-config
- run: nix build .#transitive-anns -Lv --fallback --accept-flake-config
- run: nix build .#ghc94-transitive-anns -Lv --fallback --accept-flake-config
- run: nix build .#ghc92-transitive-anns -Lv --fallback --accept-flake-config
102 changes: 31 additions & 71 deletions flake.lock

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

9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
hlint.enable = true;

alejandra.enable = true;
statix.enable = true;
deadnix.enable = true;
};
};
Expand All @@ -38,12 +37,18 @@
devShell.mkShellArgs.shellHook = config.pre-commit.installationScript;
};

haskellProjects.default = {
haskellProjects.ghc94 = {
packages = {};
settings = {};
basePackages = pkgs.haskell.packages.ghc94;
devShell.mkShellArgs.shellHook = config.pre-commit.installationScript;
};
haskellProjects.default = {
packages = {};
settings = {};
basePackages = pkgs.haskellPackages;
devShell.mkShellArgs.shellHook = config.pre-commit.installationScript;
};
};
};
}
2 changes: 1 addition & 1 deletion src/TransitiveAnns/Plugin/Annotations.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import qualified TransitiveAnns.Types as TA
------------------------------------------------------------------------------
-- | Get the name and set of referenced variables for a binding.
hsBinds :: HsBindLR GhcTc GhcTc -> Maybe (Var, Set Var)
hsBinds (FunBind _ (L _ gl) mg _) = Just (gl, getVars mg)
hsBinds FunBind {fun_id = (L _ gl), fun_matches = mg} = Just (gl, getVars mg)
hsBinds PatBind{} = Nothing
hsBinds VarBind{} = Nothing
#if MIN_VERSION_GLASGOW_HASKELL(9,4,0,0)
Expand Down

0 comments on commit 301c88a

Please sign in to comment.