summaryrefslogtreecommitdiff
path: root/testsuite/tests/showIface/should_fail/THPutDocNonExistent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/showIface/should_fail/THPutDocNonExistent.hs')
-rw-r--r--testsuite/tests/showIface/should_fail/THPutDocNonExistent.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/showIface/should_fail/THPutDocNonExistent.hs b/testsuite/tests/showIface/should_fail/THPutDocNonExistent.hs
new file mode 100644
index 0000000000..d0b1d7a162
--- /dev/null
+++ b/testsuite/tests/showIface/should_fail/THPutDocNonExistent.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module THPutDocNonExistent where
+
+import Language.Haskell.TH
+
+class A a where
+data B
+
+do
+ t <- [t| A B |]
+ putDoc (InstDoc t) "a"
+ pure []