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
{{ message }}
Repository navigation
"Warning: ... assertions enabled" should go to stderr, not stdout #8393
It it seems that the warning about assertions on goes to stdout, which is inconvenient for commands that produce reusable output, e.g. in use case $(cabal list-bin foo):
$ cabal list-bin cabal-install
Warning: this is a debug build of cabal-install with assertions enabled.
/Users/abel/bin/src/cabal/dist-newstyle/build/x86_64-osx/ghc-9.2.4/cabal-install-3.9.0.0/x/cabal/build/cabal/cabal
$ cabal list-bin cabal-install 2>/dev/null
Warning: this is a debug build of cabal-install with assertions enabled.
/Users/abel/bin/src/cabal/dist-newstyle/build/x86_64-osx/ghc-9.2.4/cabal-install-3.9.0.0/x/cabal/build/cabal/cabal
$ cabal list-bin cabal-install > /dev/null
<EMPTY>
Request: send the warning to stderr.
Correct behavior should be secured by testsuite.
Reacted by Mikolaj Konarski, Javier Neira , Saad Ahmed, Artem Pelenitsyn and matil019
Activity