summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_reifyLinear.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_reifyLinear.hs')
-rw-r--r--testsuite/tests/th/TH_reifyLinear.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_reifyLinear.hs b/testsuite/tests/th/TH_reifyLinear.hs
new file mode 100644
index 0000000000..c551ad9235
--- /dev/null
+++ b/testsuite/tests/th/TH_reifyLinear.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE LinearTypes #-}
+module TH_reifyLinear where
+
+import Language.Haskell.TH
+import System.IO
+
+type T = Int #-> Int
+
+$(
+ do x <- reify ''T
+ runIO $ hPutStrLn stderr $ pprint x
+ return []
+ )