Skip to content
Snippets Groups Projects
Commit 64469929 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Edward Z. Yang
Browse files

Add verbosityNoFlags function.

parent 90dfec26
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ module Distribution.Verbosity (
moreVerbose, lessVerbose,
intToVerbosity, flagToVerbosity,
showForCabal, showForGHC,
verboseNoFlags,
-- * Call stacks
verboseCallSite, verboseCallStack,
......@@ -181,6 +182,9 @@ verboseCallSite v = v { vFlags = Set.insert VCallSite (vFlags v) }
verboseCallStack :: Verbosity -> Verbosity
verboseCallStack v = v { vFlags = Set.insert VCallStack (vFlags v) }
verboseNoFlags :: Verbosity -> Verbosity
verboseNoFlags v = v { vFlags = Set.empty }
-- | Test if we should output call sites when we log.
isVerboseCallSite :: Verbosity -> Bool
isVerboseCallSite = (Set.member VCallSite) . vFlags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment