Fix #10182 by disallowing/avoiding self {-# SOURCE #-} imports
Summary: hs-boot declarations were leaking into the EPS due to self {-# SOURCE #-} imports, and interface loading induced by orphan instances. For the former, we simply disallow self {-# SOURCE #-} imports; for the latter, we simply just don't load an interface if it would be ourself. Signed-off-by:Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D860 GHC Trac Issues: #10182
Showing
- compiler/iface/LoadIface.hs 10 additions, 1 deletioncompiler/iface/LoadIface.hs
- compiler/iface/MkIface.hs 13 additions, 2 deletionscompiler/iface/MkIface.hs
- compiler/rename/RnNames.hs 10 additions, 4 deletionscompiler/rename/RnNames.hs
- compiler/typecheck/TcRnDriver.hs 3 additions, 2 deletionscompiler/typecheck/TcRnDriver.hs
- testsuite/tests/driver/Makefile 7 additions, 0 deletionstestsuite/tests/driver/Makefile
- testsuite/tests/driver/T10182.hs 4 additions, 0 deletionstestsuite/tests/driver/T10182.hs
- testsuite/tests/driver/T10182.hs-boot 2 additions, 0 deletionstestsuite/tests/driver/T10182.hs-boot
- testsuite/tests/driver/T10182a.hs 2 additions, 0 deletionstestsuite/tests/driver/T10182a.hs
- testsuite/tests/driver/all.T 5 additions, 0 deletionstestsuite/tests/driver/all.T
Loading
Please register or sign in to comment