aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/test
diff options
context:
space:
mode:
authorSimon Hengel <sol@typeful.net>2014-06-18 13:50:34 +0800
committerSimon Hengel <sol@typeful.net>2014-06-18 13:52:23 +0800
commit1bbda54a9cf1c8db93c5ef226c2a94ed38a842ff (patch)
tree988385d1ac83b5b8ac0b536ad6fe8676b41c3997 /haddock-library/test
parent89448ef6c7ef3367f210562306cfa95c95d77250 (diff)
Use doctest to check examples in documentation
Diffstat (limited to 'haddock-library/test')
-rw-r--r--haddock-library/test/doctests.hs11
1 files changed, 11 insertions, 0 deletions
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"
+ ]