From 1e1126ae941772c29ff41e91c6783c1eafb46e2e Mon Sep 17 00:00:00 2001 From: Ivan Gromakovskii Date: Thu, 21 Apr 2022 12:33:55 +0300 Subject: [PATCH] Do not build universum-doctest with GHC >= 9.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: universum-doctest passes with GHC < 9, but starts to fail with >= 9. The errors are weird, it complains that a lot of stuff is not in scope. Example: > Not in scope: type constructor or class ‘Text’ Solution: there is the following issue https://github.com/sol/doctest/issues/327. Apparently, something is wrong in `doctest` itself. The maintainer intends to investigate it, so let's wait for that. While waiting, let's disable `universum-doctest` whenever GHC is >= 9.0.0. --- universum.cabal | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/universum.cabal b/universum.cabal index 117cda6..8185733 100644 --- a/universum.cabal +++ b/universum.cabal @@ -149,6 +149,10 @@ test-suite universum-doctest if impl(ghc >= 8.10.1) ghc-options: -Wno-missing-safe-haskell-mode + -- https://github.com/sol/doctest/issues/327 + -- TODO: re-enable when the issue is resolved + if impl(ghc >= 9.0.0) + buildable: False ghc-options: -threaded