handling multiple package names from ghc-pkg find-module.

This commit is contained in:
Kazu Yamamoto 2014-03-30 12:37:29 +09:00
parent a47d77fb2f
commit 983fc68f5b

View File

@ -24,4 +24,4 @@ pkgDoc cradle mdl = do
where
toModuleOpts = ["find-module", mdl, "--simple-output"] ++ userPackageDbOptsForGhcPkg (cradlePackageDb cradle)
toDocDirOpts pkg = ["field", pkg, "haddock-html"] ++ userPackageDbOptsForGhcPkg (cradlePackageDb cradle)
trim = takeWhile (/= '\n')
trim = takeWhile (`notElem` " \n")