diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2013-05-15 10:19:21 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2013-05-15 10:19:21 +0100 |
commit | f9763a53465232a1b0ec4668cbf9ef36dc812922 (patch) | |
tree | 958d9badf671063ce44b8ebe5ebb06914dbb62e0 /testsuite/tests/th/T7910.hs | |
parent | 962fd59eb0118df0d3b3b4e7c2504b639a25ae15 (diff) | |
download | haskell-f9763a53465232a1b0ec4668cbf9ef36dc812922.tar.gz |
Test Trac #7910
Diffstat (limited to 'testsuite/tests/th/T7910.hs')
-rw-r--r-- | testsuite/tests/th/T7910.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/th/T7910.hs b/testsuite/tests/th/T7910.hs new file mode 100644 index 0000000000..d04436512d --- /dev/null +++ b/testsuite/tests/th/T7910.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE ConstraintKinds #-} +{-# LANGUAGE TemplateHaskell #-} +module Main where + +import Language.Haskell.TH +import Language.Haskell.TH.Syntax + +class C a +instance C Int + +type D a = C a + +main = print $( + do isCInst <- isInstance ''C [ConT ''Int] + isDInst <- isInstance ''D [ConT ''Int] + lift (isCInst,isDInst)) |