lib: make doctests build with ghc 7.10 again

This commit is contained in:
Simon Michael 2017-09-08 10:25:42 -07:00
parent 1f2b00ee3b
commit 0175a0231d

View File

@ -5,10 +5,8 @@ import Data.Monoid
import "Glob" System.FilePath.Glob
import Test.DocTest
main =
pure ["Hledger.hs"]
<> glob "Hledger/**/*.hs"
<> glob "Text/**/*.hs"
-- <> glob "other/ledger-parse/**/*.hs"
>>= pure . filter (not . isInfixOf "/.")
>>= doctest
main = do
fs1 <- glob "Hledger/**/*.hs"
fs2 <- glob "Text/**/*.hs"
--fs3 <- glob "other/ledger-parse/**/*.hs"
doctest $ filter (not . isInfixOf "/.") $ ["Hledger.hs"] ++ fs1 ++ fs2