X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fharbl.git;a=blobdiff_plain;f=test%2FDoctests.hs;fp=test%2FDoctests.hs;h=d183b4b664d289ea123da751f562a937c34ff1ae;hp=0000000000000000000000000000000000000000;hb=1a4b97540833ef71bbe1de92dba03023322ba62a;hpb=083227575707b271d4f07b462eda71d61185bd71 diff --git a/test/Doctests.hs b/test/Doctests.hs new file mode 100644 index 0000000..d183b4b --- /dev/null +++ b/test/Doctests.hs @@ -0,0 +1,13 @@ +module Main +where + +import Test.DocTest +import System.FilePath.Find ((==?), always, extension, find) + +find_sources :: IO [FilePath] +find_sources = find always (extension ==? ".hs") "src/" + +main :: IO () +main = do + sources <- find_sources + doctest $ ["-isrc", "-idist/build/autogen"] ++ sources