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