summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_repPatSigTVar.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_repPatSigTVar.hs')
-rw-r--r--tests/examples/ghc86/TH_repPatSigTVar.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_repPatSigTVar.hs b/tests/examples/ghc86/TH_repPatSigTVar.hs
new file mode 100644
index 0000000..5c9f6bd
--- /dev/null
+++ b/tests/examples/ghc86/TH_repPatSigTVar.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE TemplateHaskell #-}
+
+module Main
+where
+
+import Language.Haskell.TH
+
+$([d| f = \(_ :: Either a b) -> $(sigE (varE 'undefined) (varT ''c)) |])
+
+main :: IO ()
+main = return ()
+