Skip to content

Commit d62865a

Browse files
committed
Run also test/ doctests
1 parent d5e73bf commit d62865a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

servant/Setup.lhs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ generateBuildModule flags pkg lbi = do
7474
#endif
7575
7676
-- Lib sources and includes
77-
iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ libAutogenDir : hsSourceDirs libBI
77+
iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ "test" : libAutogenDir : hsSourceDirs libBI
7878
includeArgs <- mapM (fmap ("-I"++) . makeAbsolute) $ includeDirs libBI
7979
8080
-- CPP includes, i.e. include cabal_macros.h
@@ -106,7 +106,7 @@ generateBuildModule flags pkg lbi = do
106106
, "flags = " ++ show (iArgs ++ includeArgs ++ dbFlags ++ cppFlags)
107107
, ""
108108
, "module_sources :: [String]"
109-
, "module_sources = " ++ show (map display module_sources)
109+
, "module_sources = " ++ show ("Servant.Utils.LinksSpec" : map display module_sources)
110110
]
111111
where
112112
-- we do this check in Setup, as then doctests don't need to depend on Cabal

servant/servant.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ test-suite doctests
137137
, filemanip
138138
, directory
139139
, filepath
140+
, hspec
140141
type: exitcode-stdio-1.0
141142
main-is: test/doctests.hs
142143
buildable: True

0 commit comments

Comments
 (0)