From 1f51aad656444c667cf1dd22605ee65e931985c7 Mon Sep 17 00:00:00 2001
From: Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io>
Date: Sun, 19 May 2019 21:44:11 +0200
Subject: [PATCH] Fix tcfail158 (#15899)

As described in #15899, this test was broken, but now it's back
to normal.
---
 testsuite/tests/typecheck/should_fail/all.T            | 3 +--
 testsuite/tests/typecheck/should_fail/tcfail158.stderr | 6 ++++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index c4c5040b9b..5711753946 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -140,8 +140,7 @@ test('tcfail154', normal, compile_fail, [''])
 test('tcfail155', normal, compile_fail, [''])
 test('tcfail156', normal, compile_fail, [''])
 test('tcfail157', normal, compile_fail, [''])
-# Skip tcfail158 until #15899 fixes the broken test
-test('tcfail158', skip, compile_fail, [''])
+test('tcfail158', normal, compile_fail, [''])
 test('tcfail159', normal, compile_fail, [''])
 test('tcfail160', normal, compile_fail, [''])
 test('tcfail161', normal, compile_fail, [''])
diff --git a/testsuite/tests/typecheck/should_fail/tcfail158.stderr b/testsuite/tests/typecheck/should_fail/tcfail158.stderr
index 995be74380..c473465740 100644
--- a/testsuite/tests/typecheck/should_fail/tcfail158.stderr
+++ b/testsuite/tests/typecheck/should_fail/tcfail158.stderr
@@ -1,3 +1,5 @@
 
-tcfail158.hs:1:1: error:
-    The IO action ‘main’ is not defined in module ‘Main’
+tcfail158.hs:14:19: error:
+    • Expecting one more argument to ‘Val v’
+      Expected a type, but ‘Val v’ has kind ‘* -> *’
+    • In the type signature: bar :: forall v. Val v
-- 
GitLab