Opened 15 years ago

Closed 15 years ago

Last modified 48 years ago

#86 closed bug (Fixed)

rdrNameModule it

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 5.04.1
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


I´m new in this, and probably this is known... or maybe 
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


Attachments (1)

GHCErr.2.jpg (30.6 KB) - added by nobody 15 years ago.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by nobody

Attachment: GHCErr.2.jpg added

comment:1 Changed 15 years ago by simonmar

Status: assignedclosed
Logged In: YES 

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.  

  let x = error "help!" :: Int

Note: See TracTickets for help on using tickets.