summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T18914.hs
blob: 8d30695cf47415643c981dfe3aeec19128a96d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
module T18914 where

type T f = forall a. f a

class C f where
  m1 :: T f
  m2 :: forall a. f a

newtype N f a = MkN (f a)
  deriving C