GHCi showing its internals with malformed instance
Using ghci 7.4.2 I observe the following behaviour when I enter a malformed instance for a type class:
Prelude> instance Eq a => Eq b => Eq (a -> b) where (==) = undefined
- ** Exception: compiler\rename\RnSource.lhs:430:14-81: Irrefutable pattern failed for pattern Data.Maybe.Just (inst_tyvars,
_,
SrcLoc.L _ cls,
_)
I assume that ghci shouldn't be showing its internals like this?
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |