
#7566: exception when loading -------------------------+-------------------------------------------------- Reporter: j4hr0m | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.1 | Keywords: Os: Windows | Architecture: x86 Failure: None/Unknown | Blockedby: Blocking: | Related: -------------------------+-------------------------------------------------- when i save {{{ data EinPunkt = Punkt Float Float instance (Eq,Show) EinPunkt where Punkt x y == Punkt x' y' = x == x' && y == y' show Punkt x y = "x: " ++ show x ++ ", y: " ++ show y }}} as point.hs and load it using WinGHCi 1.0.6 afterwards, i get {{{
:load "point.hs" [1 of 1] Compiling Main ( point.hs, interpreted ) *** Exception: compiler\rename\RnSource.lhs:429:14-81: Irrefutable pattern failed for pattern Data.Maybe.Just (inst_tyvars, _, SrcLoc.L _ cls, _) }}}
-- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7566 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7566: exception when loading -----------------------+---------------------------------------------------- Reporter: j4hr0m | Owner: Type: bug | Status: closed Priority: normal | Component: Compiler Version: 7.6.1 | Resolution: duplicate Keywords: | Os: Windows Architecture: x86 | Failure: None/Unknown Blockedby: | Blocking: Related: | -----------------------+---------------------------------------------------- Changes (by monoidal): * status: new => closed * resolution: => duplicate Comment: This is already fixed in GHC 7.6, bug #5951. (You compile your code by writing "instance Eq EinPunkt" and "instance Show EinPunkt" separately.) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7566#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC