aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYann Herklotz <git@ymhg.org>2019-04-01 10:52:06 +0100
committerYann Herklotz <git@ymhg.org>2019-04-01 10:52:06 +0100
commitce3b5a9dc47c2325e1e9cc61279972048b9fbabd (patch)
treec8247d727328cc9c4c811b7778901c36b9c95274 /test
parentec33825c477eeaa7dca196f21b1de5b0579a3106 (diff)
downloadverismith-ce3b5a9dc47c2325e1e9cc61279972048b9fbabd.tar.gz
verismith-ce3b5a9dc47c2325e1e9cc61279972048b9fbabd.zip
Add back fixed doctest
Diffstat (limited to 'test')
-rw-r--r--test/Doctest.hs13
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