git.iko.soy/typeable/servant
on master help sign in
Use #warning in Setup.lhs
commitcc13d62c8c3228c2df1eb4fd9c0a0c9e9a6cff0a authorOleg Grenrus <oleg.grenrus@iki.fi> dateWed 24 May 2017, 10:22 (9 years ago) parent71ed8b3
2 files changed+6−12
servant-server/Setup.lhs+3−6 servant/Setup.lhs+3−6
servant-server/Setup.lhs+3−6
@@ -16,12 +16,9 @@ main = defaultMainWithDoctests "doctests"
1616#else
1717
1818#ifdef MIN_VERSION_Cabal
19−-- If the macro is defined, we have new cabal-install,
20−-- but for some reason we don't have cabal-doctest in package-db
21−--
22−-- Probably we are running cabal sdist, when otherwise using new-build
23−-- workflow
24−import Warning ()
19+#warning You are configuring this package without cabal-doctest installed. \
20+ The doctests test-suite will not work as a result. \
21+ To fix this, install cabal-doctest before configuring.
2522#endif
2623
2724import Distribution.Simple
servant/Setup.lhs+3−6
@@ -16,12 +16,9 @@ main = defaultMainWithDoctests "doctests"
1616#else
1717
1818#ifdef MIN_VERSION_Cabal
19−-- If the macro is defined, we have new cabal-install,
20−-- but for some reason we don't have cabal-doctest in package-db
21−--
22−-- Probably we are running cabal sdist, when otherwise using new-build
23−-- workflow
24−import Warning ()
19+#warning You are configuring this package without cabal-doctest installed. \
20+ The doctests test-suite will not work as a result. \
21+ To fix this, install cabal-doctest before configuring.
2522#endif
2623
2724import Distribution.Simple