summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T16133.hs
blob: e650042b7a863dd648ae220bbf51603b77805ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE Haskell2010 #-}
{-# 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) |])