summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-22 00:38:21 -0400
committerBen Gamari <ben@smart-cactus.org>2019-06-22 09:01:34 -0400
commit7c9c129ef2f688c878f21af11d3a4195744bc1e6 (patch)
tree298e03e0082b0498a7570c516e34196553f44a12
parent92543601915d2386c5f80e460330a173a4ab0ace (diff)
downloadhaskell-7c9c129ef2f688c878f21af11d3a4195744bc1e6.tar.gz
testsuite: Fix expected output
-rw-r--r--testsuite/tests/partial-sigs/should_fail/T11976.stderr17
-rw-r--r--testsuite/tests/partial-sigs/should_fail/T12634.stderr29
2 files changed, 39 insertions, 7 deletions
diff --git a/testsuite/tests/partial-sigs/should_fail/T11976.stderr b/testsuite/tests/partial-sigs/should_fail/T11976.stderr
index bcc69bf2d8..0f218890b8 100644
--- a/testsuite/tests/partial-sigs/should_fail/T11976.stderr
+++ b/testsuite/tests/partial-sigs/should_fail/T11976.stderr
@@ -1,6 +1,17 @@
-T11976.hs:7:20: error:
- • Expected kind ‘k0 -> *’, but ‘Lens _ _’ has kind ‘*’
- • In the type ‘Lens _ _ _’
+T11976.hs:7:7:
+ Cannot instantiate unification variable ‘a0’
+ with a type involving foralls: Lens _3 _4 _5
+ GHC doesn't yet support impredicative polymorphism
+ In the expression: undefined :: Lens _ _ _
+ In an equation for ‘foo’: foo = undefined :: Lens _ _ _
+ Relevant bindings include
+ foo :: Lens _ _1 _2 (bound at T11976.hs:7:1)
+
+T11976.hs:7:20:
+ Expected kind ‘k0 -> *’, but ‘Lens _ _’ has kind ‘*’
+ In the type ‘Lens _ _ _’
In an expression type signature: Lens _ _ _
In the expression: undefined :: Lens _ _ _
+ Relevant bindings include
+ foo :: Lens _ _1 _2 (bound at T11976.hs:7:1)
diff --git a/testsuite/tests/partial-sigs/should_fail/T12634.stderr b/testsuite/tests/partial-sigs/should_fail/T12634.stderr
index 4287110149..3603ac1110 100644
--- a/testsuite/tests/partial-sigs/should_fail/T12634.stderr
+++ b/testsuite/tests/partial-sigs/should_fail/T12634.stderr
@@ -1,10 +1,31 @@
-T12634.hs:14:58: error:
- • Expected a type, but
+T12634.hs:14:19:
+ Found type wildcard ‘_’ standing for ‘()’
+ To use the inferred type, enable PartialTypeSignatures
+ In the type signature:
+ bench_twacePow :: forall t m m' r.
+ _ => t m' r -> Bench '(t, m, m', r)
+
+T12634.hs:14:58:
+ Expected a type, but
‘'(t, m, m', r)’ has kind
- ‘(k1 -> k2 -> *, k0, k1, k2)’
- • In the first argument of ‘Bench’, namely ‘'(t, m, m', r)’
+ ‘(* -> * -> *, *, *, *)’
+ In the first argument of ‘Bench’, namely ‘'(t, m, m', r)’
In the type ‘t m' r -> Bench '(t, m, m', r)’
In the type signature:
bench_twacePow :: forall t m m' r.
_ => t m' r -> Bench '(t, m, m', r)
+
+T12634.hs:15:18:
+ Couldn't match kind ‘(* -> * -> *, *, *, *)’ with ‘*’
+ When matching types
+ params0 :: *
+ '(t, m, m', r) :: (* -> * -> *, *, *, *)
+ Expected type: t m' r -> Bench '(t, m, m', r)
+ Actual type: t m' r -> Bench params0
+ In the expression: bench (twacePowDec :: t m' r -> t m r)
+ In an equation for ‘bench_twacePow’:
+ bench_twacePow = bench (twacePowDec :: t m' r -> t m r)
+ Relevant bindings include
+ bench_twacePow :: t m' r -> Bench '(t, m, m', r)
+ (bound at T12634.hs:15:1)