git.iko.soy/typeable/servant
on master help sign in
Use #warning in Setup.lhs
cc13d62Oleg Grenrus
servant-server/Setup.lhs+3−6
@@ -16,12 +16,9 @@ main = defaultMainWithDoctests "doctests"
16#else
16#else
17
17
18#ifdef MIN_VERSION_Cabal
18#ifdef MIN_VERSION_Cabal
19−-- If the macro is defined, we have new cabal-install,
19+#warning You are configuring this package without cabal-doctest installed. \
20−-- but for some reason we don't have cabal-doctest in package-db
20+ The doctests test-suite will not work as a result. \
21−--
21+ To fix this, install cabal-doctest before configuring.
22−-- Probably we are running cabal sdist, when otherwise using new-build
23−-- workflow
24−import Warning ()
25#endif
22#endif
26
23
27import Distribution.Simple
24import Distribution.Simple
servant/Setup.lhs+3−6
@@ -16,12 +16,9 @@ main = defaultMainWithDoctests "doctests"
16#else
16#else
17
17
18#ifdef MIN_VERSION_Cabal
18#ifdef MIN_VERSION_Cabal
19−-- If the macro is defined, we have new cabal-install,
19+#warning You are configuring this package without cabal-doctest installed. \
20−-- but for some reason we don't have cabal-doctest in package-db
20+ The doctests test-suite will not work as a result. \
21−--
21+ To fix this, install cabal-doctest before configuring.
22−-- Probably we are running cabal sdist, when otherwise using new-build
23−-- workflow
24−import Warning ()
25#endif
22#endif
26
23
27import Distribution.Simple
24import Distribution.Simple