Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable tests (doctests failure) (#95) #96

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -341,11 +346,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
Loading