summaryrefslogtreecommitdiff
path: root/validate
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-03-01 16:13:44 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2022-03-04 10:41:29 +0000
commit7692da45af5f6e8f8b6bb0d55e2fe9d43779dc11 (patch)
tree59de5c255e8b65e42e07fed17ec17360fb289e40 /validate
parentc534b3dd30de8d5a59ff64628a6a0b3eb938a102 (diff)
downloadhaskell-wip/unused-package.tar.gz
Fix behaviour of -Wunused-packages in ghciwip/unused-package
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 'validate')
0 files changed, 0 insertions, 0 deletions