aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/PatternSyns.hs
diff options
context:
space:
mode:
authorAlex Biehl <alexbiehl@gmail.com>2017-06-03 20:37:28 +0200
committerGitHub <noreply@github.com>2017-06-03 20:37:28 +0200
commitbfb3563f730fd1c973a6611a0fba3435fb1df489 (patch)
tree78fe1e944e74c7840bc64cb03ea33b4e23e0ed7e /html-test/src/PatternSyns.hs
parent75e1e19d0d6c139c3c7d9b77b2928e6eb286dd48 (diff)
Allow user defined signatures for pattern synonyms (#631)
Diffstat (limited to 'html-test/src/PatternSyns.hs')
-rw-r--r--html-test/src/PatternSyns.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/html-test/src/PatternSyns.hs b/html-test/src/PatternSyns.hs
index 8af5eb23..a8de113c 100644
--- a/html-test/src/PatternSyns.hs
+++ b/html-test/src/PatternSyns.hs
@@ -20,3 +20,8 @@ data (a :: *) >< b = Empty
-- | Pattern for 'Empty'
pattern E = Empty
+
+-- | Earlier ghc versions didn't allow explicit signatures
+-- on pattern synonyms.
+pattern PatWithExplicitSig :: Eq somex => somex -> FooType somex
+pattern PatWithExplicitSig x = FooCtor x