exception when loading
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,
_)
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |