summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T8984.hs
blob: 6b0b39518d71680348320d5018d79255835d35db (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE ConstraintKinds, GeneralizedNewtypeDeriving #-}
module T8984 where

class C a where
    app :: a (a Int)

newtype N cat a b = MkN (cat a b)  deriving( C )
-- The newtype coercion is   N cat ~R cat