summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2019-05-16 19:41:46 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-05-29 10:39:05 -0400
commitf9d61ebbf4bba7862ae53c69b0f7116423b8f6d1 (patch)
treec2f63dc9f458ff4453c42d93ca778bd0b0ddb991 /testsuite/tests/printer
parenta5b14ad4764c5596331dd5a0abf0b0f6df6b0053 (diff)
downloadhaskell-f9d61ebbf4bba7862ae53c69b0f7116423b8f6d1.tar.gz
In hole fits, don't show VTA for inferred variables (#16456)
We fetch the ArgFlag for every argument by using splitForAllVarBndrs instead of splitForAllTys in unwrapTypeVars.
Diffstat (limited to 'testsuite/tests/printer')
-rw-r--r--testsuite/tests/printer/T14343.stderr6
-rw-r--r--testsuite/tests/printer/T14343b.stderr6
2 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/tests/printer/T14343.stderr b/testsuite/tests/printer/T14343.stderr
index 5865669302..7ffb689a7d 100644
--- a/testsuite/tests/printer/T14343.stderr
+++ b/testsuite/tests/printer/T14343.stderr
@@ -8,7 +8,7 @@ T14343.hs:10:9: error:
Valid hole fits include
test1 :: Proxy '[ 'True] (defined at T14343.hs:10:1)
Proxy :: forall k1 (k2 :: k1). Proxy k2
- with Proxy @[Bool] @'[ 'True]
+ with Proxy @'[ 'True]
(defined at T14343.hs:8:16)
T14343.hs:11:9: error:
@@ -20,7 +20,7 @@ T14343.hs:11:9: error:
Valid hole fits include
test2 :: Proxy '[ '[1]] (defined at T14343.hs:11:1)
Proxy :: forall k1 (k2 :: k1). Proxy k2
- with Proxy @[[GHC.Types.Nat]] @'[ '[1]]
+ with Proxy @'[ '[1]]
(defined at T14343.hs:8:16)
T14343.hs:12:9: error:
@@ -32,5 +32,5 @@ T14343.hs:12:9: error:
Valid hole fits include
test3 :: Proxy '[ '("Symbol", 1)] (defined at T14343.hs:12:1)
Proxy :: forall k1 (k2 :: k1). Proxy k2
- with Proxy @[(GHC.Types.Symbol, GHC.Types.Nat)] @'[ '("Symbol", 1)]
+ with Proxy @'[ '("Symbol", 1)]
(defined at T14343.hs:8:16)
diff --git a/testsuite/tests/printer/T14343b.stderr b/testsuite/tests/printer/T14343b.stderr
index 7573169414..94e540c79e 100644
--- a/testsuite/tests/printer/T14343b.stderr
+++ b/testsuite/tests/printer/T14343b.stderr
@@ -8,7 +8,7 @@ T14343b.hs:10:9: error:
Valid hole fits include
test1 :: Proxy '( 'True, 'False) (defined at T14343b.hs:10:1)
Proxy :: forall k1 (k2 :: k1). Proxy k2
- with Proxy @(Bool, Bool) @'( 'True, 'False)
+ with Proxy @'( 'True, 'False)
(defined at T14343b.hs:8:16)
T14343b.hs:11:9: error:
@@ -23,7 +23,7 @@ T14343b.hs:11:9: error:
test2 :: Proxy '( '( 'True, 'False), 'False)
(defined at T14343b.hs:11:1)
Proxy :: forall k1 (k2 :: k1). Proxy k2
- with Proxy @((Bool, Bool), Bool) @'( '( 'True, 'False), 'False)
+ with Proxy @'( '( 'True, 'False), 'False)
(defined at T14343b.hs:8:16)
T14343b.hs:12:9: error:
@@ -35,5 +35,5 @@ T14343b.hs:12:9: error:
Valid hole fits include
test3 :: Proxy '( '[1], 'False) (defined at T14343b.hs:12:1)
Proxy :: forall k1 (k2 :: k1). Proxy k2
- with Proxy @([GHC.Types.Nat], Bool) @'( '[1], 'False)
+ with Proxy @'( '[1], 'False)
(defined at T14343b.hs:8:16)