From f323939521c272c5bb7f4f32e6f22dc26ae131e7 Mon Sep 17 00:00:00 2001 From: Vanessa McHale Date: Sun, 8 Sep 2019 21:58:58 -0500 Subject: [PATCH] Remove Setup.hs --- Setup.lhs | 34 ---------------------------------- comonad.cabal | 8 +------- 2 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 Setup.lhs diff --git a/Setup.lhs b/Setup.lhs deleted file mode 100644 index faedcd3..0000000 --- a/Setup.lhs +++ /dev/null @@ -1,34 +0,0 @@ -\begin{code} -{-# 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 -import Warning () -#endif - -import Distribution.Simple - -main :: IO () -main = defaultMain - -#endif - -\end{code} diff --git a/comonad.cabal b/comonad.cabal index c95c22c..99b18f6 100644 --- a/comonad.cabal +++ b/comonad.cabal @@ -13,7 +13,7 @@ copyright: Copyright (C) 2008-2014 Edward A. Kmett, Copyright (C) 2004-2008 Dave Menendez synopsis: Comonads description: Comonads. -build-type: Custom +build-type: Simple tested-with: GHC == 7.0.4 , GHC == 7.2.2 , GHC == 7.4.2 @@ -37,12 +37,6 @@ extra-source-files: examples/History.hs Warning.hs -custom-setup - setup-depends: - base >= 4 && < 5, - Cabal, - cabal-doctest >= 1 && < 1.1 - -- You can disable the doctests test suite with -f-test-doctests flag test-doctests default: True