You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this patch is to allow the logging handle to be set when
calling Cabal library functions, without having to spawn a separate
process and redirect handles. This allows Cabal library functions to
be called in a concurrent setting without spawning separate processes.
To achieve this, this commit modifies Verbosity as follows:
1. The old Verbosity datatype becomes VerbosityFlags. This is what
gets passed in the command-line interface, e.g. when running a
Setup executable.
2. The new Verbosity datatype contains VerbosityFlags together with
VerbosityHandles, which specify where to redirect stdout/stderr.
Crucially, this allows us to get rid of the
isJust (useLoggingHandle options)
condition in 'getSetupMethod', which forced us to use the cabal-install
"act as setup" mechanism instead of directly calling Cabal library
functions.
0 commit comments