From d62865a71cb1d93320412f295d6d82fcf197caab Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Mon, 16 Jan 2017 11:09:41 +0200 Subject: [PATCH] Run also test/ doctests --- servant/Setup.lhs | 4 ++-- servant/servant.cabal | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/servant/Setup.lhs b/servant/Setup.lhs index 0f89abf8..0e04e46c 100644 --- a/servant/Setup.lhs +++ b/servant/Setup.lhs @@ -74,7 +74,7 @@ generateBuildModule flags pkg lbi = do #endif -- Lib sources and includes - iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ libAutogenDir : hsSourceDirs libBI + iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ "test" : libAutogenDir : hsSourceDirs libBI includeArgs <- mapM (fmap ("-I"++) . makeAbsolute) $ includeDirs libBI -- CPP includes, i.e. include cabal_macros.h @@ -106,7 +106,7 @@ generateBuildModule flags pkg lbi = do , "flags = " ++ show (iArgs ++ includeArgs ++ dbFlags ++ cppFlags) , "" , "module_sources :: [String]" - , "module_sources = " ++ show (map display module_sources) + , "module_sources = " ++ show ("Servant.Utils.LinksSpec" : map display module_sources) ] where -- we do this check in Setup, as then doctests don't need to depend on Cabal diff --git a/servant/servant.cabal b/servant/servant.cabal index c760e00e..79d08e39 100644 --- a/servant/servant.cabal +++ b/servant/servant.cabal @@ -137,6 +137,7 @@ test-suite doctests , filemanip , directory , filepath + , hspec type: exitcode-stdio-1.0 main-is: test/doctests.hs buildable: True