Opened 12 years ago

Closed 12 years ago

Last modified 44 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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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@web.de

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by nobody

comment:1 Changed 12 years ago by simonmar

  • Status changed from assigned to closed
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

Note: See TracTickets for help on using tickets.