Use lookupIfaceTop for loading IfaceDecls.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 22 Jul 2015 00:16:52 +0000 (17:16 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 22 Jul 2015 20:04:04 +0000 (13:04 -0700)
commitdd365b1baab08b44e8feb1715ecacf7407628d5c
treeba5e2ed7383898053b29dd5dc0ffda5be3ecfc3a
parent939f1b2ed3c7a9e6ca7150d8c26a555c5b23a20c
Use lookupIfaceTop for loading IfaceDecls.

Summary:
It's shorter!  And then when Backpack overrides lookupIfaceTop
everyone will see the right information.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1090
compiler/iface/IfaceEnv.hs
compiler/iface/LoadIface.hs
compiler/iface/TcIface.hs