summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs
diff options
context:
space:
mode:
authorThomas Winant <thomas.winant@cs.kuleuven.be>2014-11-28 16:08:10 -0600
committerAustin Seipp <austin@well-typed.com>2014-11-28 17:17:17 -0600
commitd831b6f41b3b89dc4a643069d5668c05a20f3c37 (patch)
tree4f717db36c841619324cd210b9146ed8db671869 /testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs
parent7460dafae3709218af651cb8bc47b5f03d4c25c7 (diff)
downloadhaskell-d831b6f41b3b89dc4a643069d5668c05a20f3c37.tar.gz
Implement Partial Type Signatures
Summary: Add support for Partial Type Signatures, i.e. holes in types, see: https://ghc.haskell.org/trac/ghc/wiki/PartialTypeSignatures This requires an update to the Haddock submodule. Test Plan: validate Reviewers: austin, goldfire, simonpj Reviewed By: simonpj Subscribers: thomie, Iceland_jack, dominique.devriese, simonmar, carter, goldfire Differential Revision: https://phabricator.haskell.org/D168 GHC Trac Issues: #9478
Diffstat (limited to 'testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs')
-rw-r--r--testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs b/testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs
new file mode 100644
index 0000000000..579380f5f9
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_compile/ParensAroundContext.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE PartialTypeSignatures #-}
+module ParensAroundContext where
+
+f :: (_) => a -> a -> Bool
+f x y = x == y