Ticket #7238 (closed bug: fixed)
class methods with associated equality constraints panic
Description
The following file causes a panic ("getEqPredTys"):
{-# LANGUAGE ConstraintKinds, TypeFamilies #-}
import GHC.Exts
class Pair p where
type Ctxt p a :: Constraint
l :: Ctxt p a => p a -> a
data Unit a = Unit
instance Pair Unit where
type Ctxt Unit a = a ~ ()
l _ = ()
Change History
Note: See
TracTickets for help on using
tickets.
