diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-03-01 16:13:44 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-03-23 13:41:31 -0400 |
commit | 4dc624987a7e000e9e1086a601039afafb7f2d28 (patch) | |
tree | 982838d1ec69844598069ebb225bbf2bd28ffba1 /rts/adjustor/NativeAmd64Asm.S | |
parent | b06e5dd8a2b258d5d6f3676c9f424cc09d4d73f3 (diff) | |
download | haskell-4dc624987a7e000e9e1086a601039afafb7f2d28.tar.gz |
Fix behaviour of -Wunused-packages in ghci
Ticket #21110 points out that -Wunused-packages behaves a bit unusually
in GHCi. Now we define the semantics for -Wunused-packages in
interactive mode as follows:
* If you use -Wunused-packages on an initial load then the warning is reported.
* If you explicitly set -Wunused-packages on the command line then the
warning is displayed (until it is disabled)
* If you then subsequently modify the set of available targets by using
:load or :cd (:cd unloads everything) then the warning is (silently)
turned off.
This means that every :r the warning is printed if it's turned on (but you did ask for it).
Fixes #21110
Diffstat (limited to 'rts/adjustor/NativeAmd64Asm.S')
0 files changed, 0 insertions, 0 deletions