diff --git a/containers-tests/containers-tests.cabal b/containers-tests/containers-tests.cabal index c226d45e0..8b6c160e4 100644 --- a/containers-tests/containers-tests.cabal +++ b/containers-tests/containers-tests.cabal @@ -76,9 +76,10 @@ library hs-source-dirs: src, tests ghc-options: -O2 -Wall + if impl(ghc >= 9.4) + ghc-options: -fworker-wrapper-cbv if impl(ghc >= 8.6) ghc-options: -fproc-alignment=64 - other-extensions: BangPatterns CPP diff --git a/containers/containers.cabal b/containers/containers.cabal index cc76c7a3f..429a47267 100644 --- a/containers/containers.cabal +++ b/containers/containers.cabal @@ -39,6 +39,8 @@ Library build-depends: base >= 4.10 && < 5, array >= 0.4.0.0, deepseq >= 1.2 && < 1.6, template-haskell hs-source-dirs: src ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates + if impl(ghc >= 9.4) + ghc-options: -fworker-wrapper-cbv other-extensions: CPP, BangPatterns