diff options
author | Thomas Winant <thomas.winant@cs.kuleuven.be> | 2014-11-28 16:08:10 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-11-28 17:17:17 -0600 |
commit | d831b6f41b3b89dc4a643069d5668c05a20f3c37 (patch) | |
tree | 4f717db36c841619324cd210b9146ed8db671869 /testsuite/tests/partial-sigs/should_compile/PatBind2.hs | |
parent | 7460dafae3709218af651cb8bc47b5f03d4c25c7 (diff) | |
download | haskell-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/PatBind2.hs')
-rw-r--r-- | testsuite/tests/partial-sigs/should_compile/PatBind2.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/partial-sigs/should_compile/PatBind2.hs b/testsuite/tests/partial-sigs/should_compile/PatBind2.hs new file mode 100644 index 0000000000..93780b5d49 --- /dev/null +++ b/testsuite/tests/partial-sigs/should_compile/PatBind2.hs @@ -0,0 +1,5 @@ +{-# LANGUAGE PartialTypeSignatures #-} +module PatBind2 where + +foo :: Bool -> _ +Just foo = Just id |