Opened 4 years ago

Closed 4 years ago

#7236 closed bug (duplicate)

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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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


GHCi, version 7.4.2: :? 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:

Attachments (1)

rectPol.hs (283 bytes) - added by danielhanlon 4 years ago.
source file loaded

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by danielhanlon

Attachment: rectPol.hs added

source file loaded

comment:1 Changed 4 years ago by simonpj

difficulty: Unknown
Resolution: duplicate
Status: newclosed

Dup of #5961, happily fixed in 7.6

Note: See TracTickets for help on using tickets.