Ticket #7093 (closed bug: duplicate)
Exception when encountering instance declarations without class name
Description
Code
instance Bounded b => (a -> b) where minBound = const minBound maxBound = const maxBound
GHC 7.4.1 "crashes" with an exception if the class name is missing.
*** Exception: compiler/rename/RnSource.lhs:429:14-81: Irrefutable pattern failed for pattern Data.Maybe.Just (inst_tyvars,
_,
SrcLoc.L _ cls,
_)
Change History
Note: See
TracTickets for help on using
tickets.
