#7236: ghc panic
--------------------------+-------------------------------------------------
Reporter: danielhanlon | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 7.4.2 | Keywords:
Os: MacOS X | Architecture: x86_64 (amd64)
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------+-------------------------------------------------
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
>
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7236>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs