Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
97f2208a
Unverified
Commit
97f2208a
authored
Dec 04, 2017
by
Mikhail Glushenkov
Browse files
Comment.
[ci skip]
parent
f90aeb0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Verbosity.hs
View file @
97f2208a
...
...
@@ -129,15 +129,17 @@ lessVerbose v =
Normal
->
v
{
vLevel
=
Silent
}
Silent
->
v
-- | Combinator for transforming verbosity level while retaining the original hidden state.
-- | Combinator for transforming verbosity level while retaining the
-- original hidden state.
--
-- For instance, the following property holds
--
-- prop> isVerboseNoWrap (modifyVerbosity (max verbose) v) == isVerboseNoWrap v
--
-- __Note__: you can use @modifyVerbosity (const v1) v0@ to overwrite @v1@'s flags with @v0@'s flags.
-- __Note__: you can use @modifyVerbosity (const v1) v0@ to overwrite
-- @v1@'s flags with @v0@'s flags.
--
-- @since 2.0.1
-- @since 2.0.1
.0
modifyVerbosity
::
(
Verbosity
->
Verbosity
)
->
Verbosity
->
Verbosity
modifyVerbosity
f
v
=
v
{
vLevel
=
vLevel
(
f
v
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment