mirror of
https://github.com/NorfairKing/autodocodec.git
synced 2024-11-26 16:06:31 +03:00
Extra GHC flags on CI, and do not error on deprecations
This commit is contained in:
parent
2b05f3a567
commit
3ae5182fcc
@ -5,7 +5,29 @@ with final.haskell.lib;
|
|||||||
autodocodecPackages =
|
autodocodecPackages =
|
||||||
let
|
let
|
||||||
autodocodecPkg = name:
|
autodocodecPkg = name:
|
||||||
doBenchmark (buildStrictly (final.haskellPackages.callCabal2nixWithOptions name (final.gitignoreSource (../. + "/${name}")) "--no-hpack" { }));
|
buildStrictly (
|
||||||
|
overrideCabal (final.haskellPackages.callCabal2nixWithOptions name (final.gitignoreSource (../. + "/${name}")) "--no-hpack" { })
|
||||||
|
(old: {
|
||||||
|
doBenchmark = true;
|
||||||
|
configureFlags = (old.configureFlags or [ ]) ++ [
|
||||||
|
# Optimisations
|
||||||
|
"--ghc-options=-O2"
|
||||||
|
# Extra warnings
|
||||||
|
"--ghc-options=-Wall"
|
||||||
|
"--ghc-options=-Wincomplete-uni-patterns"
|
||||||
|
"--ghc-options=-Wincomplete-record-updates"
|
||||||
|
"--ghc-options=-Wpartial-fields"
|
||||||
|
"--ghc-options=-Widentities"
|
||||||
|
"--ghc-options=-Wredundant-constraints"
|
||||||
|
"--ghc-options=-Wcpp-undef"
|
||||||
|
"--ghc-options=-Werror"
|
||||||
|
"--ghc-options=-Wno-deprecations"
|
||||||
|
];
|
||||||
|
# Ugly hack because we can't just add flags to the 'test' invocation.
|
||||||
|
# Show test output as we go, instead of all at once afterwards.
|
||||||
|
testTarget = (old.testTarget or "") + " --show-details=direct";
|
||||||
|
})
|
||||||
|
);
|
||||||
in
|
in
|
||||||
final.lib.genAttrs [
|
final.lib.genAttrs [
|
||||||
"autodocodec"
|
"autodocodec"
|
||||||
|
@ -36,5 +36,8 @@ extra-deps:
|
|||||||
- sydtest-discover
|
- sydtest-discover
|
||||||
- envparse-0.4.1@sha256:989902e6368532548f61de1fa245ad2b39176cddd8743b20071af519a709ce30,2842
|
- envparse-0.4.1@sha256:989902e6368532548f61de1fa245ad2b39176cddd8743b20071af519a709ce30,2842
|
||||||
|
|
||||||
|
ghc-options:
|
||||||
|
"$locals": -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wpartial-fields -Widentities -Wredundant-constraints -Wcpp-undef
|
||||||
|
|
||||||
nix:
|
nix:
|
||||||
shell-file: shell.nix
|
shell-file: shell.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user