summaryrefslogtreecommitdiff
path: root/testsuite/tests/roles/should_compile/T20999.hs
blob: a698bb1ae2a051c7f7fb869046d8fd0bc13f09dc (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE RoleAnnotations #-}
module T20999 where

type T a = Int

type role M nominal phantom
data M f a = MkM (f (T a))

type role N nominal phantom
data N f a = MkN (f Int)