diff options
author | Julian Priestley <jupriest@devvm610.lla2.facebook.com> | 2018-01-31 21:35:00 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-01-31 23:28:06 -0500 |
commit | 0bff9e677f0569bc8a7207c20cddddfd67e2448f (patch) | |
tree | 77bec47e70244bd3d39906ce8d0611b5ae8babc4 /testsuite/tests/driver/T4437.hs | |
parent | 0171e09e4d073d8466953ebbf01292e55829fb20 (diff) | |
download | haskell-0bff9e677f0569bc8a7207c20cddddfd67e2448f.tar.gz |
Don't add targets that can't be found in GHCi
When using the :add command in haxlsh/ghci, a module/file that can't
be found is still added to the list of targets, resulting in an error
message for the bad module/file for every subsequent usage of the
command. The add command should verify that the module/file can be
found before adding it to the list of targets.
Also add a ":show targets" command to show the currently added list of
commands, and an ":unadd" command to remove a target.
Test Plan:
Add a new GHCi testcase that checks that :add doesn't remember either
files or modules that could not be found, and that both the new :show
and :unadd commands work as expected.
Reviewers: simonmar, bgamari
Reviewed By: simonmar
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #14676
Differential Revision: https://phabricator.haskell.org/D4321
Diffstat (limited to 'testsuite/tests/driver/T4437.hs')
0 files changed, 0 insertions, 0 deletions