2015-02-04 01:12:51 +01:00
|
|
|
#!/usr/bin/env runhaskell
|
2017-08-28 10:45:32 +02:00
|
|
|
|
2017-09-18 12:27:45 +02:00
|
|
|
{-# LANGUAGE CPP #-}
|
|
|
|
|
|
|
|
|
|
#ifndef MIN_VERSION_cabal_doctest
|
|
|
|
|
#error \
|
|
|
|
|
Your version of cabal-install does not seem to support the 'custom-setup' section. \
|
|
|
|
|
Please see https://github.com/DanielG/ghc-mod/wiki/Installing#checking-and-installing-prerequisites for instrutions on how to upgrade. \
|
|
|
|
|
It is also possible that you forgot to install cabal-doctest before running Setup.hs
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-04-03 00:16:22 +09:00
|
|
|
import Distribution.Simple
|
2017-03-01 08:26:17 +01:00
|
|
|
import Distribution.Simple.Program
|
2015-01-16 15:46:58 +01:00
|
|
|
|
2017-09-18 12:27:45 +02:00
|
|
|
import Distribution.Extra.Doctest
|
|
|
|
|
|
2015-01-16 15:46:58 +01:00
|
|
|
main :: IO ()
|
2017-09-18 12:27:45 +02:00
|
|
|
main =
|
|
|
|
|
defaultMainWithHooks $
|
|
|
|
|
addDoctestsUserHook "doctest" $
|
|
|
|
|
simpleUserHooks {
|
|
|
|
|
hookedPrograms = [ simpleProgram "shelltest" ]
|
|
|
|
|
}
|