summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T16133.hs
blob: b7f5e23d092ec15ffcc25e1482d6d00c5896f384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TemplateHaskell #-}
module T16133 where

import Data.Kind
import Language.Haskell.TH hiding (Type)

data P (a :: k) = MkP

$([d| f :: Int
      f = $(varE 'id `appTypeE` conT ''Int `appE` litE (integerL 42))

      type P' = $(conT ''P `appKindT` conT ''Type) |])