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 "Glob" System.FilePath.Glob
import Test.DocTest import Test.DocTest
main = main = do
pure ["Hledger.hs"] fs1 <- glob "Hledger/**/*.hs"
<> glob "Hledger/**/*.hs" fs2 <- glob "Text/**/*.hs"
<> glob "Text/**/*.hs" --fs3 <- glob "other/ledger-parse/**/*.hs"
-- <> glob "other/ledger-parse/**/*.hs" doctest $ filter (not . isInfixOf "/.") $ ["Hledger.hs"] ++ fs1 ++ fs2
>>= pure . filter (not . isInfixOf "/.")
>>= doctest