Skip to content

Commit

Permalink
fix: disable tests (doctests failure) (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven authored and marcosh committed Nov 28, 2024
1 parent a9da2c2 commit ad40359
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions crem.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ flag errors
manual: True
default: False

flag test-doctest
description: run doctests
manual: True
default: True

library
exposed-modules:
Crem.BaseMachine
Expand Down Expand Up @@ -342,11 +347,14 @@ test-suite crem-doctests
LambdaCase
PackageImports
ghc-options: -Weverything -Wno-safe -Wno-unsafe -Wno-missing-safe-haskell-mode -Wno-implicit-prelude -Wno-missing-export-lists -Wno-missing-home-modules -Wno-missing-import-lists -Wno-all-missed-specialisations -Wno-prepositive-qualified-module -threaded -Wno-unused-packages
build-depends:
base >=4.15 && <4.19
, crem
, crem-examples
, doctest-parallel >=0.2.3 && <0.4
if !flag(test-doctest)
buildable: False
else
build-depends:
base >=4.15 && <4.19
, crem
, crem-examples
, doctest-parallel >=0.2.3 && <0.4
default-language: Haskell2010
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
haskellPackages.override {
overrides = self: super: {
hpack = pkgs.hpack;
crem = (self.callCabal2nix "crem" src { }).overrideAttrs (attrs: {
crem = pkgs.haskell.lib.compose.disableCabalFlag "test-doctest" ((self.callCabal2nix "crem" src { }).overrideAttrs (attrs: {
# doctest-parallel needs to know where the compiled crem package is
preCheck = ''
export GHC_PACKAGE_PATH="dist/package.conf.inplace:$GHC_PACKAGE_PATH"
'';
});
}));
fourmolu = pkgs.haskell.packages.ghc944.fourmolu;
};
};
Expand Down

0 comments on commit ad40359

Please sign in to comment.