2017-09-18 10:27:45 +00: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-02 15:16:22 +00:00
|
|
|
import Distribution.Simple
|
2017-03-01 07:26:17 +00:00
|
|
|
import Distribution.Simple.Program
|
2015-01-16 14:46:58 +00:00
|
|
|
|
2017-09-18 10:27:45 +00:00
|
|
|
import Distribution.Extra.Doctest
|
|
|
|
|
2015-01-16 14:46:58 +00:00
|
|
|
main :: IO ()
|
2017-09-18 10:27:45 +00:00
|
|
|
main =
|
|
|
|
defaultMainWithHooks $
|
|
|
|
addDoctestsUserHook "doctest" $
|
|
|
|
simpleUserHooks {
|
|
|
|
hookedPrograms = [ simpleProgram "shelltest" ]
|
|
|
|
}
|