[commit: ghc] master: testsuite: Fix MonadFail test output for new ST instance (2258a29)

git at git.haskell.org git at git.haskell.org
Sun Sep 17 12:00:56 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2258a2936bbeebcf671e19e8d6408b3a611c329d/ghc

>---------------------------------------------------------------

commit 2258a2936bbeebcf671e19e8d6408b3a611c329d
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Sep 17 07:59:41 2017 -0400

    testsuite: Fix MonadFail test output for new ST instance


>---------------------------------------------------------------

2258a2936bbeebcf671e19e8d6408b3a611c329d
 testsuite/tests/monadfail/MonadFailErrors.stderr   | 13 -------------
 testsuite/tests/monadfail/MonadFailWarnings.stderr | 13 -------------
 2 files changed, 26 deletions(-)

diff --git a/testsuite/tests/monadfail/MonadFailErrors.stderr b/testsuite/tests/monadfail/MonadFailErrors.stderr
index 81ad56c..27fc3c3 100644
--- a/testsuite/tests/monadfail/MonadFailErrors.stderr
+++ b/testsuite/tests/monadfail/MonadFailErrors.stderr
@@ -33,19 +33,6 @@ MonadFailErrors.hs:30:5: error:
             = do Just x <- undefined
                  undefined
 
-MonadFailErrors.hs:44:5: error:
-    • No instance for (MonadFail (ST s))
-        arising from a do statement
-        with the failable pattern ‘Just x’
-    • In a stmt of a 'do' block: Just x <- undefined
-      In the expression:
-        do Just x <- undefined
-           undefined
-      In an equation for ‘st’:
-          st
-            = do Just x <- undefined
-                 undefined
-
 MonadFailErrors.hs:51:5: error:
     • No instance for (MonadFail ((->) r))
         arising from a do statement
diff --git a/testsuite/tests/monadfail/MonadFailWarnings.stderr b/testsuite/tests/monadfail/MonadFailWarnings.stderr
index 7471bd9..7a341fc 100644
--- a/testsuite/tests/monadfail/MonadFailWarnings.stderr
+++ b/testsuite/tests/monadfail/MonadFailWarnings.stderr
@@ -33,19 +33,6 @@ MonadFailWarnings.hs:35:5: warning: [-Wmissing-monadfail-instances (in -Wcompat)
             = do Just x <- undefined
                  undefined
 
-MonadFailWarnings.hs:51:5: warning: [-Wmissing-monadfail-instances (in -Wcompat)]
-    • No instance for (MonadFail (ST s))
-        arising from the failable pattern ‘Just x’
-        (this will become an error in a future GHC release)
-    • In a stmt of a 'do' block: Just x <- undefined
-      In the expression:
-        do Just x <- undefined
-           undefined
-      In an equation for ‘st’:
-          st
-            = do Just x <- undefined
-                 undefined
-
 MonadFailWarnings.hs:59:5: warning: [-Wmissing-monadfail-instances (in -Wcompat)]
     • No instance for (MonadFail ((->) r))
         arising from the failable pattern ‘Just x’



More information about the ghc-commits mailing list