[commit: ghc] master: Remove printExceptionAndWarnings (deprecated since 7.2) (ffd68b4)

Ian Lynagh igloo at earth.li
Thu Feb 21 03:19:30 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ffd68b43d56852f78089c4384abe8906cb307a39

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

commit ffd68b43d56852f78089c4384abe8906cb307a39
Author: Ian Lynagh <ian at well-typed.com>
Date:   Wed Feb 20 01:05:58 2013 +0000

    Remove printExceptionAndWarnings (deprecated since 7.2)

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

 compiler/main/GHC.hs      |    1 -
 compiler/main/GhcMonad.hs |    6 +-----
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs
index ee40a13..483da4b 100644
--- a/compiler/main/GHC.hs
+++ b/compiler/main/GHC.hs
@@ -17,7 +17,6 @@ module GHC (
         runGhc, runGhcT, initGhcMonad,
         gcatch, gbracket, gfinally,
         printException,
-        printExceptionAndWarnings,
         handleSourceError,
         needsTemplateHaskell,
 
diff --git a/compiler/main/GhcMonad.hs b/compiler/main/GhcMonad.hs
index 1806264..66034e0 100644
--- a/compiler/main/GhcMonad.hs
+++ b/compiler/main/GhcMonad.hs
@@ -18,7 +18,7 @@ module GhcMonad (
         Session(..), withSession, modifySession, withTempSession,
 
         -- ** Warnings
-        logWarnings, printException, printExceptionAndWarnings,
+        logWarnings, printException,
         WarnErrLogger, defaultWarnErrLogger
   ) where
 
@@ -189,10 +189,6 @@ printException err = do
   dflags <- getSessionDynFlags
   liftIO $ printBagOfErrors dflags (srcErrorMessages err)
 
-{-# DEPRECATED printExceptionAndWarnings "use printException instead" #-} -- deprecated in 7.2
-printExceptionAndWarnings :: GhcMonad m => SourceError -> m ()
-printExceptionAndWarnings = printException
-
 -- | A function called to log warnings and errors.
 type WarnErrLogger = GhcMonad m => Maybe SourceError -> m ()
 





More information about the ghc-commits mailing list