From 1f8c5cbbb07b9efc847f76b46543d567c5dfddc0 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 4 Sep 2024 18:26:34 +0300 Subject: [PATCH] Remove doctests from Setup.hs The actual doctests were removed already, but calling Setup.hs raises a warning about missing cabal-doctest. Let's remove it too. --- wai-logger/Setup.hs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/wai-logger/Setup.hs b/wai-logger/Setup.hs index 8ec54a0..cf4543d 100644 --- a/wai-logger/Setup.hs +++ b/wai-logger/Setup.hs @@ -1,33 +1,7 @@ -{-# LANGUAGE CPP #-} {-# OPTIONS_GHC -Wall #-} module Main (main) where -#ifndef MIN_VERSION_cabal_doctest -#define MIN_VERSION_cabal_doctest(x,y,z) 0 -#endif - -#if MIN_VERSION_cabal_doctest(1,0,0) - -import Distribution.Extra.Doctest ( defaultMainWithDoctests ) -main :: IO () -main = defaultMainWithDoctests "doctests" - -#else - -#ifdef MIN_VERSION_Cabal --- If the macro is defined, we have new cabal-install, --- but for some reason we don't have cabal-doctest in package-db --- --- Probably we are running cabal sdist, when otherwise using new-build --- workflow -#warning You are configuring this package without cabal-doctest installed. \ - The doctests test-suite will not work as a result. \ - To fix this, install cabal-doctest before configuring. -#endif - import Distribution.Simple main :: IO () main = defaultMain - -#endif