Use #warning in Setup.lhs

This commit is contained in:
Oleg Grenrus 2017-05-24 10:22:01 +03:00
parent 71ed8b3736
commit cc13d62c8c
2 changed files with 6 additions and 12 deletions

View File

@ -16,12 +16,9 @@ main = defaultMainWithDoctests "doctests"
#else #else
#ifdef MIN_VERSION_Cabal #ifdef MIN_VERSION_Cabal
-- If the macro is defined, we have new cabal-install, #warning You are configuring this package without cabal-doctest installed. \
-- but for some reason we don't have cabal-doctest in package-db The doctests test-suite will not work as a result. \
-- To fix this, install cabal-doctest before configuring.
-- Probably we are running cabal sdist, when otherwise using new-build
-- workflow
import Warning ()
#endif #endif
import Distribution.Simple import Distribution.Simple

View File

@ -16,12 +16,9 @@ main = defaultMainWithDoctests "doctests"
#else #else
#ifdef MIN_VERSION_Cabal #ifdef MIN_VERSION_Cabal
-- If the macro is defined, we have new cabal-install, #warning You are configuring this package without cabal-doctest installed. \
-- but for some reason we don't have cabal-doctest in package-db The doctests test-suite will not work as a result. \
-- To fix this, install cabal-doctest before configuring.
-- Probably we are running cabal sdist, when otherwise using new-build
-- workflow
import Warning ()
#endif #endif
import Distribution.Simple import Distribution.Simple