Commit cb5fe0e2 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Revert the change about the --internal flag and a warning about haddock

Just a bit of confusion over the behaviour of the --executable flag.
parent b010ee53
......@@ -104,12 +104,11 @@ import Distribution.Version
haddock :: PackageDescription -> LocalBuildInfo -> [PPSuffixHandler] -> HaddockFlags -> IO ()
haddock pkg_descr _ _ haddockFlags
| not (hasLibs pkg_descr)
&& not (fromFlag $ haddockExecutables haddockFlags)
&& not (fromFlag $ haddockInternal haddockFlags) =
&& not (fromFlag $ haddockExecutables haddockFlags) =
warn (fromFlag $ haddockVerbosity haddockFlags) $
"No documentation was generated as this package does not contain "
++ "a library. Perhaps you want to use the haddock command with the "
++ "--executables or --internal flag."
++ "--executables."
haddock pkg_descr lbi suffixes flags = do
let doExes = fromFlag (haddockExecutables flags)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment