X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2FDoctests.hs;h=af7167d52a469aa2f504e913a9d18c6053e405a2;hb=070d0876a5663270bd393cee354f4df368b146a4;hp=d183b4b664d289ea123da751f562a937c34ff1ae;hpb=1ca89a2acb3f4819a42128f1db66fc84b5cac367;p=haeredes.git diff --git a/test/Doctests.hs b/test/Doctests.hs index d183b4b..af7167d 100644 --- a/test/Doctests.hs +++ b/test/Doctests.hs @@ -1,7 +1,7 @@ -module Main +module Main (main) where -import Test.DocTest +import Test.DocTest (doctest) import System.FilePath.Find ((==?), always, extension, find) find_sources :: IO [FilePath] @@ -10,4 +10,8 @@ find_sources = find always (extension ==? ".hs") "src/" main :: IO () main = do sources <- find_sources - doctest $ ["-isrc", "-idist/build/autogen"] ++ sources + doctest $ ["-isrc", + "-idist/build/autogen", -- old cabal versions + "-idist/build/haeredes/autogen" -- new cabal versions + ] + ++ sources