summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T14563.hs
blob: aefa12b59ec4d01ea0c595c4c503458ef0ea9b7c (plain)
1
2
3
4
5
6
7
8
9
{-# Language RankNTypes, KindSignatures, PolyKinds #-}
{-# OPTIONS_GHC -fprint-explicit-runtime-reps #-}

import GHC.Types (TYPE)
import Data.Kind

data Lan (g::TYPE rep -> TYPE rep') (h::TYPE rep -> TYPE rep'') a where
  Lan :: forall rep rep' xx (g::TYPE rep -> TYPE rep') (h::TYPE rep -> Type) a.
         (g xx -> a) -> h xx -> Lan g h a