Ticket #7236 (closed bug: duplicate)

Opened 8 months ago

Last modified 8 months ago

ghc panic

Reported by: danielhanlon Owned by:
Priority: normal Milestone:
Component: GHCi Version: 7.4.2
Keywords: Cc:
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Apologies if this is an inappropriate bug report - I'm new to Haskell and haven't figured out how to navigate around the possible errors....

I have now noticed (at least some of) the errors in the following but I get a ghc panic when I load this into ghci:

---rectPolh.hs data Point2D = Cartesian2D Double Double

| Polar2D Double Double deriving (Eq,show)

instance Eq Point2D where

Cartesian2D x y == Polar2D r theta =

x == rx && y == ry

where rx=r * cos theta

ry=r * sin theta

i.e.

GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> :load rectPol.hs [1 of 1] Compiling Main ( rectPol.hs, interpreted ) ghc: panic! (the 'impossible' happened)

(GHC version 7.4.2 for x86_64-apple-darwin):

nameModule show{tv aaH}

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

Attachments

rectPol.hs Download (283 bytes) - added by danielhanlon 8 months ago.
source file loaded

Change History

Changed 8 months ago by danielhanlon

source file loaded

Changed 8 months ago by simonpj

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

Dup of #5961, happily fixed in 7.6

Note: See TracTickets for help on using tickets.