]> gitweb.michael.orlitzky.com - haeredes.git/blob - test/Doctests.hs
067f3d432b23a8b0ca2a4becec7e9af2733c4421
[haeredes.git] / test / Doctests.hs
1 module Main (main)
2 where
3
4 import Test.DocTest (doctest)
5 import System.FilePath.Find ((==?), always, extension, find)
6
7 find_sources :: IO [FilePath]
8 find_sources = find always (extension ==? ".hs") "src/"
9
10 main :: IO ()
11 main = do
12 sources <- find_sources
13 doctest $ ["-isrc",
14 "-idist/build//autogen", -- old cabal versions
15 "-idist/build/haeredes/autogen" -- new cabal versions
16 ]
17 ++ sources