2015-03-05 15:50:06 +00:00
|
|
|
{-# LANGUAGE CPP #-}
|
2013-09-20 12:10:31 +00:00
|
|
|
module Main where
|
|
|
|
|
|
|
|
import Test.DocTest
|
2016-08-09 11:27:51 +00:00
|
|
|
import System.Environment
|
|
|
|
import Data.Maybe
|
2013-09-20 12:10:31 +00:00
|
|
|
|
|
|
|
main :: IO ()
|
2016-08-09 11:27:51 +00:00
|
|
|
main = do
|
|
|
|
distdir <- (fromMaybe "dist" . lookup "DOCTEST_DIST_DIR") `fmap` getEnvironment
|
|
|
|
doctest
|
|
|
|
[ "-package", "ghc-" ++ VERSION_ghc
|
|
|
|
, "-package", "transformers-" ++ VERSION_transformers
|
|
|
|
, "-package", "mtl-" ++ VERSION_mtl
|
|
|
|
, "-package", "directory-" ++ VERSION_directory
|
|
|
|
, "-XScopedTypeVariables", "-XRecordWildCards", "-XNamedFieldPuns", "-XConstraintKinds", "-XFlexibleContexts", "-XDataKinds", "-XKindSignatures", "-XTypeOperators", "-XViewPatterns"
|
|
|
|
, "-i" ++ distdir ++ "/build/autogen/"
|
2017-01-12 15:36:47 +00:00
|
|
|
, "-icore/"
|
2017-05-18 00:40:21 +00:00
|
|
|
, "-ishared"
|
2017-01-12 15:36:47 +00:00
|
|
|
-- , "-optP-include"
|
|
|
|
-- , "-optP" ++ distdir ++ "/build/autogen/cabal_macros.h"
|
|
|
|
, "GhcMod.hs"
|
2016-08-09 11:27:51 +00:00
|
|
|
]
|