summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T2632.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/T2632.hs')
-rw-r--r--tests/examples/ghc86/T2632.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/examples/ghc86/T2632.hs b/tests/examples/ghc86/T2632.hs
new file mode 100644
index 0000000..e160873
--- /dev/null
+++ b/tests/examples/ghc86/T2632.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE TemplateHaskell #-}
+-- Trac #2632
+
+module MkData where
+
+import Language.Haskell.TH
+
+op :: Num v => v -> v -> v
+op a b = a + b
+
+decl1 = [d| func = 0 `op` 3 |]
+
+decl2 = [d| op x y = x
+ func = 0 `op` 3 |]
+