Commit 5bd96351 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Edward Z. Yang
Browse files

Don't mark Haddock warnings, which depend on installation.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 6a652a87
...@@ -414,7 +414,7 @@ getInterfaces :: Verbosity ...@@ -414,7 +414,7 @@ getInterfaces :: Verbosity
-> IO HaddockArgs -> IO HaddockArgs
getInterfaces verbosity lbi clbi htmlTemplate = do getInterfaces verbosity lbi clbi htmlTemplate = do
(packageFlags, warnings) <- haddockPackageFlags verbosity lbi clbi htmlTemplate (packageFlags, warnings) <- haddockPackageFlags verbosity lbi clbi htmlTemplate
traverse_ (warn verbosity) warnings traverse_ (warn (verboseUnmarkOutput verbosity)) warnings
return $ mempty { return $ mempty {
argInterfaces = packageFlags argInterfaces = packageFlags
} }
......
...@@ -38,6 +38,7 @@ module Distribution.Verbosity ( ...@@ -38,6 +38,7 @@ module Distribution.Verbosity (
-- * Output markets -- * Output markets
verboseMarkOutput, isVerboseMarkOutput, verboseMarkOutput, isVerboseMarkOutput,
verboseUnmarkOutput,
-- * line-wrapping -- * line-wrapping
verboseNoWrap, isVerboseNoWrap, verboseNoWrap, isVerboseNoWrap,
...@@ -206,6 +207,10 @@ verboseCallStack = verboseFlag VCallStack ...@@ -206,6 +207,10 @@ verboseCallStack = verboseFlag VCallStack
verboseMarkOutput :: Verbosity -> Verbosity verboseMarkOutput :: Verbosity -> Verbosity
verboseMarkOutput = verboseFlag VMarkOutput verboseMarkOutput = verboseFlag VMarkOutput
-- | Turn off marking; useful for suppressing nondeterministic output.
verboseUnmarkOutput :: Verbosity -> Verbosity
verboseUnmarkOutput v = v { vFlags = Set.delete VMarkOutput (vFlags v) }
-- | Disable line-wrapping for log messages. -- | Disable line-wrapping for log messages.
verboseNoWrap :: Verbosity -> Verbosity verboseNoWrap :: Verbosity -> Verbosity
verboseNoWrap = verboseFlag VNoWrap verboseNoWrap = verboseFlag VNoWrap
......
Markdown is supported
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