From 1bbda54a9cf1c8db93c5ef226c2a94ed38a842ff Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Wed, 18 Jun 2014 13:50:34 +0800 Subject: Use doctest to check examples in documentation --- haddock-library/test/doctests.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 haddock-library/test/doctests.hs (limited to 'haddock-library/test') diff --git a/haddock-library/test/doctests.hs b/haddock-library/test/doctests.hs new file mode 100644 index 00000000..e4f93858 --- /dev/null +++ b/haddock-library/test/doctests.hs @@ -0,0 +1,11 @@ +module Main where + +import Test.DocTest + +main :: IO () +main = doctest [ + "-isrc" + , "-ivendor/attoparsec-0.10.4.0" + , "-optP-include", "-optPdist/build/autogen/cabal_macros.h" + , "src/Documentation/Haddock/Parser.hs" + ] -- cgit v1.2.3