Skip to content

Commit

Permalink
Merge pull request #216 from felixonmars/patch-1
Browse files Browse the repository at this point in the history
Remove doctests from Setup.hs
  • Loading branch information
kazu-yamamoto authored Sep 5, 2024
2 parents 3b02012 + 1f8c5cb commit 6e205bd
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions wai-logger/Setup.hs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6e205bd

Please sign in to comment.