Ticket #7467 (closed bug: duplicate)

Opened 6 months ago

Last modified 6 months ago

the impossible happened?

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I've added this line to a .hs file: data Shape = Circle Float Float Float | Rectangle Float Float Float Float deriving (show) Afterwards whenever I try to load it with the :load ex2.hs command, ghci removes all modules (so the prompt becomes > instead of whatever I've loaded) and returns an error message displaying that I should report this unthinkable occurance here. My apologies for doing this anonymously and rather brief but I'm on an academic deathline so time is of the essence :)

Change History

Changed 6 months ago by monoidal

  • status changed from new to closed
  • resolution set to duplicate

Thank you for the report; it is a duplicate of the bug #5961 and already fixed in GHC 7.6. You need to write the class name starting with a capital: "deriving (Show)".

Note: See TracTickets for help on using tickets.