[ ghc-Bugs-620264 ] rdrNameModule it

noreply at sourceforge.net noreply at sourceforge.net
Mon Oct 14 08:52:09 EDT 2002


Bugs item #620264, was opened at 2002-10-08 14:46
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=620264&group_id=8032

Category: Compiler
Group: 5.04.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: rdrNameModule it

Initial Comment:
I´m new in this, and probably this is known... or maybe 
irrelevant:
What I´ve done: (in Prelude)

let x = error "help!"
print x
id x
print it

I did not understand why x isn´t printed (id x works...), 
but the serious ghc.exe panic! message after trying 
to 'print it' told me to report this ^_^
I just went through the manual and tried some lines out 
of it...

system: Win XP
version: 5.04.1 GHCi

E-Mail: coldsky at web.de

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

>Comment By: Simon Marlow (simonmar)
Date: 2002-10-14 12:52

Message:
Logged In: YES 
user_id=48280

The bug has been fixed; 5.04.2 will have the fix.  

To make "print x" work, you need to give x a type signature.  
eg.

  let x = error "help!" :: Int


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

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



More information about the Glasgow-haskell-bugs mailing list