diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Doctest.hs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Doctest.hs b/test/Doctest.hs index 736ea72..421f3d6 100644 --- a/test/Doctest.hs +++ b/test/Doctest.hs @@ -1 +1,12 @@ -{-# options_ghc -F -pgmF doctest-discover -optF test/doctest.json #-} +module Main where + +import Build_doctests (flags, module_sources, pkgs) +import Data.Foldable (traverse_) +import Test.DocTest (doctest) + +main :: IO () +main = do + traverse_ putStrLn args -- optionally print arguments + doctest args + where + args = flags ++ pkgs ++ module_sources |