Let parseModule take a ModSummary like checkAndLoadModule did.
authorThomas Schilling <nominolo@googlemail.com>
Thu, 2 Oct 2008 23:04:12 +0000 (23:04 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Thu, 2 Oct 2008 23:04:12 +0000 (23:04 +0000)
commit766b34f81d81d009f1070e297756423fbadbd421
tree5ff5eb7ad388185042577ef75f2f9be92a629953
parentd4be0e206e925fb6d525689fb1bdc3c18a7940a3
Let parseModule take a ModSummary like checkAndLoadModule did.

To get the ModSummary for a ModuleName getModSummary can be used.
It's not called find* or lookup* because it assumes that the module is
in the module graph and throws an exception if it cannot be found.
Overall, I'm not quite sure about the usefulness of this function
since the user has no control about which filetype to grab (hs or
hs-boot).
compiler/ghci/InteractiveUI.hs
compiler/iface/MkIface.lhs
compiler/main/GHC.hs