GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T18:55:14Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/5442ghc-pkg unregister --user/--global/--package-conf not normative2019-07-07T18:55:14Zguestghc-pkg unregister --user/--global/--package-conf not normativeFor package P,
"ghc-pkg unregister --user P" drops the global package if P is not in user.
"ghc-pkg unregister --global P" drops the user package if P is in user.
"ghc-pkg unregister --package-conf=\<dir\> P" drops the user or the glo...For package P,
"ghc-pkg unregister --user P" drops the global package if P is not in user.
"ghc-pkg unregister --global P" drops the user package if P is in user.
"ghc-pkg unregister --package-conf=\<dir\> P" drops the user or the global package, preferring the user one, if P is not found in \<dir\>.
Same with "ghc-pkg --user unregister P", "ghc-pkg unregister P --user", etc.
GHC versions 6.10, 6.12, 7.0, 7.2.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 7.2.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | ghc-pkg |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghc-pkg unregister --user/--global/--package-conf not normative","status":"New","operating_system":"","component":"ghc-pkg","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.2.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"For package P,\r\n\r\n\"ghc-pkg unregister --user P\" drops the global package if P is not in user.\r\n\r\n\"ghc-pkg unregister --global P\" drops the user package if P is in user.\r\n\r\n\"ghc-pkg unregister --package-conf=<dir> P\" drops the user or the global package, preferring the user one, if P is not found in <dir>.\r\n\r\nSame with \"ghc-pkg --user unregister P\", \"ghc-pkg unregister P --user\", etc.\r\n\r\nGHC versions 6.10, 6.12, 7.0, 7.2.","type_of_failure":"OtherFailure","blocking":[]} -->7.10.1Edward Z. YangEdward Z. Yang