git.iko.soy/typeable/servant
on master help sign in
Run also test/ doctests
d62865aOleg Grenrus
servant/Setup.lhs+2−2
@@ -74,7 +74,7 @@ generateBuildModule flags pkg lbi = do
74#endif
74#endif
75
75
76 -- Lib sources and includes
76 -- Lib sources and includes
77− iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ libAutogenDir : hsSourceDirs libBI
77+ iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ "test" : libAutogenDir : hsSourceDirs libBI
78 includeArgs <- mapM (fmap ("-I"++) . makeAbsolute) $ includeDirs libBI
78 includeArgs <- mapM (fmap ("-I"++) . makeAbsolute) $ includeDirs libBI
79
79
80 -- CPP includes, i.e. include cabal_macros.h
80 -- CPP includes, i.e. include cabal_macros.h
@@ -106,7 +106,7 @@ generateBuildModule flags pkg lbi = do
106 , "flags = " ++ show (iArgs ++ includeArgs ++ dbFlags ++ cppFlags)
106 , "flags = " ++ show (iArgs ++ includeArgs ++ dbFlags ++ cppFlags)
107 , ""
107 , ""
108 , "module_sources :: [String]"
108 , "module_sources :: [String]"
109− , "module_sources = " ++ show (map display module_sources)
109+ , "module_sources = " ++ show ("Servant.Utils.LinksSpec" : map display module_sources)
110 ]
110 ]
111 where
111 where
112 -- we do this check in Setup, as then doctests don't need to depend on Cabal
112 -- we do this check in Setup, as then doctests don't need to depend on Cabal
servant/servant.cabal+1
@@ -137,6 +137,7 @@ test-suite doctests
137 , filemanip
137 , filemanip
138 , directory
138 , directory
139 , filepath
139 , filepath
140+ , hspec
140 type: exitcode-stdio-1.0
141 type: exitcode-stdio-1.0
141 main-is: test/doctests.hs
142 main-is: test/doctests.hs
142 buildable: True
143 buildable: True