#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 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 (1)

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

Download all attachments as: .zip

Change History (2)

Changed 19 months ago by danielhanlon

source file loaded

comment:1 Changed 19 months ago by simonpj

  • Difficulty set to Unknown
  • Resolution set to duplicate
  • Status changed from new to closed

Dup of #5961, happily fixed in 7.6

Note: See TracTickets for help on using tickets.