Add the ability to :set -l{foo} in ghci, fix #1407.
authorarchblob <fcsernik@gmail.com>
Tue, 16 Sep 2014 12:56:09 +0000 (07:56 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 16 Sep 2014 12:56:09 +0000 (07:56 -0500)
commit52eab67a99dd928204b730355245233fa96fa24d
tree221af20e20a4f6b605c8e97d643d5811bbf10ba3
parentfe9f7e40844802443315ef2238c4cdefda756b62
Add the ability to :set -l{foo} in ghci, fix #1407.

Summary:
The dynamic linking code was already there but it was not called
on flag changes in ghci.

Test Plan: validate

Reviewers: hvr, simonmar, austin

Reviewed By: austin

Subscribers: simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D194

GHC Trac Issues: #1407
compiler/ghci/Linker.lhs
ghc/InteractiveUI.hs
testsuite/tests/ghci/linking/T1407.script [new file with mode: 0644]
testsuite/tests/ghci/linking/all.T