Skip to content

Commit

Permalink
bump doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Feb 2, 2025
1 parent 335df90 commit dbdc48e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"96" = hsPkgs nixpkgs "ghc96";
"98" = hsPkgs nixpkgs "ghc98";
"910" = hsPkgs nixpkgs "ghc910";
"latest" = hsPkgs nixpkgs "ghc9101";
};

default = "96";
Expand All @@ -39,7 +40,7 @@
packages = p: [p.polysemy p.polysemy-plugin];
buildInputs = with ghc; [
cabal-install
] ++ nixpkgs.lib.optionals (name != "910" && name != "98" && name != "90") [
] ++ nixpkgs.lib.optionals (name != "latest" && name != "910" && name != "98" && name != "90") [
(ghc.pkgs.haskell.lib.dontCheck ghcid)
haskell-language-server
];
Expand Down
9 changes: 9 additions & 0 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
}:
let
pkgs = import nixpkgs { inherit system; };
hlib = pkgs.haskell.lib;

overrides = self: super:
let
Expand All @@ -15,6 +16,14 @@ let
in {
polysemy = c2n "polysemy" ../.;
polysemy-plugin = c2n "polysemy-plugin" ../polysemy-plugin;
} // pkgs.lib.optionalAttrs (compiler == "ghc9101") {

doctest = hlib.dontCheck (self.callHackageDirect {
pkg = "doctest";
ver = "0.23.0";
sha256 = "sha256-fDCOM5CSRmDjFKK3kOA06JYIBWbaQf+11fciTEPIZlk=";
} {});

};
in
pkgs.haskell.packages.${compiler}.override { inherit overrides; } // { inherit pkgs; }
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ tests:
- polysemy
- inspection-testing >= 0.4.2 && < 0.7
- hspec >= 2.6.0 && < 3
- doctest >= 0.16.0.1 && < 0.23
- doctest >= 0.16.0.1 && < 0.24
- hspec-discover >= 2.0
generated-other-modules:
- Build_doctests
Expand Down
2 changes: 1 addition & 1 deletion polysemy-plugin/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tests:
- hspec >= 2.6.0 && < 3
- should-not-typecheck >= 2.1.0 && < 3
- inspection-testing >= 0.4.2 && < 0.7
- doctest >= 0.16.0.1 && < 0.23
- doctest >= 0.16.0.1 && < 0.24
generated-other-modules:
- Build_doctests

Expand Down
4 changes: 2 additions & 2 deletions polysemy-plugin/polysemy-plugin.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.35.2.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -111,7 +111,7 @@ test-suite polysemy-plugin-test
build-depends:
base >=4.9 && <5
, containers >=0.5 && <0.8
, doctest >=0.16.0.1 && <0.23
, doctest >=0.16.0.1 && <0.24
, ghc >=8.6.5 && <10
, ghc-tcplugins-extra >=0.3 && <0.5
, hspec >=2.6.0 && <3
Expand Down
4 changes: 2 additions & 2 deletions polysemy.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -167,7 +167,7 @@ test-suite polysemy-test
async >=2.2 && <3
, base >=4.9 && <5
, containers >=0.5 && <0.8
, doctest >=0.16.0.1 && <0.23
, doctest >=0.16.0.1 && <0.24
, first-class-families >=0.5.0.0 && <0.9
, hspec >=2.6.0 && <3
, hspec-discover >=2.0
Expand Down

0 comments on commit dbdc48e

Please sign in to comment.