From ce3b5a9dc47c2325e1e9cc61279972048b9fbabd Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 1 Apr 2019 10:52:06 +0100 Subject: Add back fixed doctest --- test/Doctest.hs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit