summaryrefslogtreecommitdiff
path: root/testsuite/tests/splice-imports/SI09.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/splice-imports/SI09.hs')
-rw-r--r--testsuite/tests/splice-imports/SI09.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/splice-imports/SI09.hs b/testsuite/tests/splice-imports/SI09.hs
new file mode 100644
index 0000000000..08a0a97826
--- /dev/null
+++ b/testsuite/tests/splice-imports/SI09.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE SpliceImports #-}
+{-# LANGUAGE TemplateHaskell #-}
+module SI09 where
+
+import splice InstanceA ()
+import splice ClassA
+
+e :: IO ()
+-- Uses a non-splice imported instance
+e = $(const [| pure () |] (x vx))