GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T19:02:00Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/3818ghc-pkg prints warnings to stdout instead of stderr2019-07-07T19:02:00ZJoachim Breitnermail@joachim-breitner.deghc-pkg prints warnings to stdout instead of stderrThe warning
```
WARNING: cache is out of date: /var/lib/ghc-6.12.1/package.conf.d/package.cache
use 'ghc-pkg recache' to fix.
```
is printed to stdout, which breaks scripts. It should be printed to stderr instead.
<details><summary>...The warning
```
WARNING: cache is out of date: /var/lib/ghc-6.12.1/package.conf.d/package.cache
use 'ghc-pkg recache' to fix.
```
is printed to stdout, which breaks scripts. It should be printed to stderr instead.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 6.12.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Package system |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghc-pkg prints warnings to stdout instead of stderr","status":"New","operating_system":"","component":"Package system","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.12.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"The warning\r\n{{{\r\nWARNING: cache is out of date: /var/lib/ghc-6.12.1/package.conf.d/package.cache\r\n use 'ghc-pkg recache' to fix.\r\n}}}\r\nis printed to stdout, which breaks scripts. It should be printed to stderr instead.","type_of_failure":"OtherFailure","blocking":[]} -->7.6.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>