[ ghc-Bugs-1205210 ] :i wrongly claims "Imported from ..."

SourceForge.net noreply at sourceforge.net
Fri May 20 11:15:56 EDT 2005


Bugs item #1205210, was opened at 2005-05-19 13:58
Message generated for change (Comment added) made by pimlott
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1205210&group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GHCi
Group: None
Status: Open
Resolution: None
Priority: 2
Submitted By: Andrew Pimlott (pimlott)
Assigned to: Nobody/Anonymous (nobody)
Summary: :i wrongly claims "Imported from ..."

Initial Comment:
Mostly cosmetic mix-up:

Prelude> :m GHC.Exception
Prelude GHC.Exception> :i System.IO.Error.catch
catch :: IO a -> (IOError -> IO a) -> IO a
        -- Imported from GHC.Exception

The catch described is not the same on as imported from
GHC.Exception.

----------------------------------------------------------------------

>Comment By: Andrew Pimlott (pimlott)
Date: 2005-05-20 10:15

Message:
Logged In: YES 
user_id=498741

Ok, my mind was playing tricks on me.  When I originally
stumbled on this issue, I had imported Control.Exception,
and misread "Imported from GHC.Exception" as "Imported from
Control.Exception", and from then on my eye blinded itself
to the difference.  In fact, I was just ready to serve you
with irrefutable proof that Control.Exception.catch is
distinct from System.IO.Error.catch, when I finally noticed
"GHC"!  The current behavior now seems fine, at worst mildly
confusing.

----------------------------------------------------------------------

Comment By: Simon Peyton Jones (simonpj)
Date: 2005-05-20 07:33

Message:
Logged In: YES 
user_id=50165

Actually, System.IO.Error.catch is indeed the same as 
GHC.Exception.catch.

It might be better if GHCi printed out the reason that 
something is in scope, rather than its defining module, 
maybe, but otherwise this looks ok to me.

I'm leaving it open to remind us to think abou the question of 
what might be the most helpful location to give .

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1205210&group_id=8032



More information about the Glasgow-haskell-bugs mailing list