diff options
author | mynguyen <mnguyen1@brynmawr.edu> | 2018-12-18 11:52:26 -0500 |
---|---|---|
committer | Richard Eisenberg <rae@cs.brynmawr.edu> | 2019-01-03 08:57:32 -0500 |
commit | 17bd163566153babbf51adaff8397f948ae363ca (patch) | |
tree | ef25e933481def276de4cdcad77eb4a34a76444b /testsuite/tests/polykinds/T14265.stderr | |
parent | 6e4e63764aaf558cf177c2a9c2da345b2a360ea6 (diff) | |
download | haskell-17bd163566153babbf51adaff8397f948ae363ca.tar.gz |
Visible kind application
Summary:
This patch implements visible kind application (GHC Proposal 15/#12045), as well as #15360 and #15362.
It also refactors unnamed wildcard handling, and requires that type equations in type families in Template Haskell be
written with full type on lhs. PartialTypeSignatures are on and warnings are off automatically with visible kind
application, just like in term-level.
There are a few remaining issues with this patch, as documented in
ticket #16082.
Includes a submodule update for Haddock.
Test Plan: Tests T12045a/b/c/TH1/TH2, T15362, T15592a
Reviewers: simonpj, goldfire, bgamari, alanz, RyanGlScott, Iceland_jack
Subscribers: ningning, Iceland_jack, RyanGlScott, int-index, rwbarton, mpickering, carter
GHC Trac Issues: `#12045`, `#15362`, `#15592`, `#15788`, `#15793`, `#15795`, `#15797`, `#15799`, `#15801`, `#15807`, `#15816`
Differential Revision: https://phabricator.haskell.org/D5229
Diffstat (limited to 'testsuite/tests/polykinds/T14265.stderr')
-rw-r--r-- | testsuite/tests/polykinds/T14265.stderr | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/testsuite/tests/polykinds/T14265.stderr b/testsuite/tests/polykinds/T14265.stderr index 43366fccb7..fa951ad920 100644 --- a/testsuite/tests/polykinds/T14265.stderr +++ b/testsuite/tests/polykinds/T14265.stderr @@ -1,24 +1,30 @@ T14265.hs:7:12: error: - • Found type wildcard ‘_’ standing for ‘w :: k’ - Where: ‘k’, ‘w’ are rigid type variables bound by - the inferred type of f :: proxy w -> () + • Found type wildcard ‘_’ standing for ‘_ :: k’ + Where: ‘k’, ‘_’ are rigid type variables bound by + the inferred type of f :: proxy _ -> () at T14265.hs:8:1-8 To use the inferred type, enable PartialTypeSignatures - • In the type signature: f :: proxy _ -> () + • In the first argument of ‘proxy’, namely ‘_’ + In the type ‘proxy _ -> ()’ + In the type signature: f :: proxy _ -> () T14265.hs:10:15: error: - • Found type wildcard ‘_’ standing for ‘w’ - Where: ‘w’ is a rigid type variable bound by - the inferred type of foo :: StateT w w1 () + • Found type wildcard ‘_’ standing for ‘_’ + Where: ‘_’ is a rigid type variable bound by + the inferred type of foo :: StateT _ _1 () at T14265.hs:11:1-15 To use the inferred type, enable PartialTypeSignatures - • In the type signature: foo :: StateT _ _ () + • In the first argument of ‘StateT’, namely ‘_’ + In the type ‘StateT _ _ ()’ + In the type signature: foo :: StateT _ _ () T14265.hs:10:17: error: - • Found type wildcard ‘_’ standing for ‘w1 :: * -> *’ - Where: ‘w1’ is a rigid type variable bound by - the inferred type of foo :: StateT w w1 () + • Found type wildcard ‘_’ standing for ‘_1 :: * -> *’ + Where: ‘_1’ is a rigid type variable bound by + the inferred type of foo :: StateT _ _1 () at T14265.hs:11:1-15 To use the inferred type, enable PartialTypeSignatures - • In the type signature: foo :: StateT _ _ () + • In the second argument of ‘StateT’, namely ‘_’ + In the type ‘StateT _ _ ()’ + In the type signature: foo :: StateT _ _ () |