X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=test%2FDoctests.hs;fp=test%2FDoctests.hs;h=d183b4b664d289ea123da751f562a937c34ff1ae;hp=0000000000000000000000000000000000000000;hb=0ed071e75268da9ba8273d5c13817fa1297c94e2;hpb=e3864f89a0cae34d4d280efeb52ea5f761ddb44a 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