Improve the finder's error messages
authorsimonpj@microsoft.com <unknown>
Thu, 13 Jan 2011 11:12:33 +0000 (11:12 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 13 Jan 2011 11:12:33 +0000 (11:12 +0000)
commit6ffbfe99284a4e9da0ff5a55ef49bc7450d1aa00
tree0d4417efc0eb099745be11fd1904069db41a047e
parent5882c5ff503c5b3b425708621cbc3371cc36e5de
Improve the finder's error messages

I'd done all the work to add fuzzy-match suggestions, but they
weren't really being used!  Here's what you get now

   module Foo where
    import Data.Lst

Foo.hs:3:1:
    Failed to load interface for `Data.Lst'
    Perhaps you meant
      Data.List (from base)
      Data.List (needs flag -package haskell2010-1.0.0.0)
      Data.Int (needs flag -package haskell2010-1.0.0.0)
    Use -v to see a list of the files searched for.
compiler/main/Finder.lhs