diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-04-20 16:54:38 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-26 13:55:14 -0400 |
commit | af332442123878c1b61d236dce46418efcbe8750 (patch) | |
tree | ec4b332843cdd4fedb4aa60b11b7b8dba82a0764 /ghc | |
parent | b0fbfc7582fb81314dc28a056536737fb5eeaa6e (diff) | |
download | haskell-af332442123878c1b61d236dce46418efcbe8750.tar.gz |
Modules: Utils and Data (#13009)
Update Haddock submodule
Metric Increase:
haddock.compiler
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/GHCi/Leak.hs | 2 | ||||
-rw-r--r-- | ghc/GHCi/UI.hs | 22 | ||||
-rw-r--r-- | ghc/GHCi/UI/Info.hs | 4 | ||||
-rw-r--r-- | ghc/GHCi/UI/Monad.hs | 10 | ||||
-rw-r--r-- | ghc/GHCi/UI/Tags.hs | 8 | ||||
-rw-r--r-- | ghc/Main.hs | 24 |
6 files changed, 35 insertions, 35 deletions
diff --git a/ghc/GHCi/Leak.hs b/ghc/GHCi/Leak.hs index 5dcd9ab80d..e6a11cb9af 100644 --- a/ghc/GHCi/Leak.hs +++ b/ghc/GHCi/Leak.hs @@ -12,7 +12,7 @@ import GHC import GHC.Ptr (Ptr (..)) import GHCi.Util import GHC.Driver.Types -import Outputable +import GHC.Utils.Outputable import GHC.Platform (target32Bit) import Prelude import System.Mem diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index 87826438e3..46fe4fb4a5 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -41,7 +41,7 @@ import GHC.Runtime.Interpreter.Types import GHCi.RemoteTypes import GHCi.BreakArray import GHC.Driver.Session as DynFlags -import ErrUtils hiding (traceCmd) +import GHC.Utils.Error hiding (traceCmd) import GHC.Driver.Finder as Finder import GHC.Driver.Monad ( modifySession ) import qualified GHC @@ -66,24 +66,24 @@ import GHC.Types.Name.Reader as RdrName ( getGRE_NameQualifier_maybes, getRdrNam import GHC.Types.SrcLoc as SrcLoc import qualified GHC.Parser.Lexer as Lexer -import StringBuffer -import Outputable hiding ( printForUser, printForUserPartWay ) +import GHC.Data.StringBuffer +import GHC.Utils.Outputable hiding ( printForUser, printForUserPartWay ) import GHC.Runtime.Loader ( initializePlugins ) -- Other random utilities import GHC.Types.Basic hiding ( isTopLevel ) import Config -import Digraph -import Encoding -import FastString +import GHC.Data.Graph.Directed +import GHC.Utils.Encoding +import GHC.Data.FastString import GHC.Runtime.Linker -import Maybes ( orElse, expectJust ) +import GHC.Data.Maybe ( orElse, expectJust ) import GHC.Types.Name.Set -import Panic hiding ( showException ) -import Util +import GHC.Utils.Panic hiding ( showException ) +import GHC.Utils.Misc import qualified GHC.LanguageExtensions as LangExt -import Bag (unitBag) +import GHC.Data.Bag (unitBag) -- Haskell Libraries import System.Console.Haskeline as Haskeline @@ -112,7 +112,7 @@ import Data.Time.Format ( formatTime, defaultTimeLocale ) import Data.Version ( showVersion ) import Prelude hiding ((<>)) -import Exception hiding (catch) +import GHC.Utils.Exception as Exception hiding (catch) import Foreign hiding (void) import GHC.Stack hiding (SrcLoc(..)) diff --git a/ghc/GHCi/UI/Info.hs b/ghc/GHCi/UI/Info.hs index f5df1edc38..22eb664856 100644 --- a/ghc/GHCi/UI/Info.hs +++ b/ghc/GHCi/UI/Info.hs @@ -34,12 +34,12 @@ import System.Directory import qualified GHC.Core.Utils import GHC.HsToCore import GHC.Driver.Session (HasDynFlags(..)) -import FastString +import GHC.Data.FastString import GHC import GHC.Driver.Monad import GHC.Types.Name import GHC.Types.Name.Set -import Outputable +import GHC.Utils.Outputable import GHC.Types.SrcLoc import GHC.Tc.Utils.Zonk import GHC.Types.Var diff --git a/ghc/GHCi/UI/Monad.hs b/ghc/GHCi/UI/Monad.hs index 27e31b6cf6..fb6d673fff 100644 --- a/ghc/GHCi/UI/Monad.hs +++ b/ghc/GHCi/UI/Monad.hs @@ -38,11 +38,11 @@ module GHCi.UI.Monad ( import GHCi.UI.Info (ModInfo) import qualified GHC import GHC.Driver.Monad hiding (liftIO) -import Outputable hiding (printForUser, printForUserPartWay) -import qualified Outputable +import GHC.Utils.Outputable hiding (printForUser, printForUserPartWay) +import qualified GHC.Utils.Outputable as Outputable import GHC.Types.Name.Occurrence import GHC.Driver.Session -import FastString +import GHC.Data.FastString import GHC.Driver.Types import GHC.Types.SrcLoc import GHC.Types.Module @@ -52,9 +52,9 @@ import GHC.Runtime.Interpreter import GHCi.RemoteTypes import GHC.Hs (ImportDecl, GhcPs, GhciLStmt, LHsDecl) import GHC.Hs.Utils -import Util +import GHC.Utils.Misc -import Exception hiding (uninterruptibleMask, mask, catch) +import GHC.Utils.Exception hiding (uninterruptibleMask, mask, catch) import Numeric import Data.Array import Data.IORef diff --git a/ghc/GHCi/UI/Tags.hs b/ghc/GHCi/UI/Tags.hs index 155a63bf5a..9f4dfa6e53 100644 --- a/ghc/GHCi/UI/Tags.hs +++ b/ghc/GHCi/UI/Tags.hs @@ -13,17 +13,17 @@ module GHCi.UI.Tags ( createETagsFileCmd ) where -import Exception +import GHC.Utils.Exception import GHC import GHCi.UI.Monad -import Outputable +import GHC.Utils.Outputable -- ToDo: figure out whether we need these, and put something appropriate -- into the GHC API instead import GHC.Types.Name (nameOccName) import GHC.Types.Name.Occurrence (pprOccName) import GHC.Core.ConLike -import MonadUtils +import GHC.Utils.Monad import Control.Monad import Data.Function @@ -31,7 +31,7 @@ import Data.List import Data.Maybe import Data.Ord import GHC.Driver.Phases -import Panic +import GHC.Utils.Panic import Prelude import System.Directory import System.IO diff --git a/ghc/Main.hs b/ghc/Main.hs index 7a356b920a..a4cd897ab4 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -53,23 +53,23 @@ import GHC.Driver.Packages ( pprPackages, pprPackagesSimple ) import GHC.Driver.Phases import GHC.Types.Basic ( failed ) import GHC.Driver.Session hiding (WarnReason(..)) -import ErrUtils -import FastString -import Outputable +import GHC.Utils.Error +import GHC.Data.FastString +import GHC.Utils.Outputable as Outputable import GHC.SysTools.BaseDir import GHC.Settings.IO import GHC.Types.SrcLoc -import Util -import Panic +import GHC.Utils.Misc +import GHC.Utils.Panic import GHC.Types.Unique.Supply -import MonadUtils ( liftIO ) +import GHC.Utils.Monad ( liftIO ) -- Imports for --abi-hash -import GHC.Iface.Load ( loadUserInterface ) -import GHC.Driver.Finder ( findImportedModule, cannotFindModule ) -import GHC.Tc.Utils.Monad ( initIfaceCheck ) -import Binary ( openBinMem, put_ ) -import GHC.Iface.Recomp.Binary ( fingerprintBinMem ) +import GHC.Iface.Load ( loadUserInterface ) +import GHC.Driver.Finder ( findImportedModule, cannotFindModule ) +import GHC.Tc.Utils.Monad ( initIfaceCheck ) +import GHC.Utils.Binary ( openBinMem, put_ ) +import GHC.Iface.Recomp.Binary ( fingerprintBinMem ) -- Standard Haskell libraries import System.IO @@ -786,7 +786,7 @@ showInfo dflags = do let sq x = " [" ++ x ++ "\n ]" putStrLn $ sq $ intercalate "\n ," $ map show $ compilerInfo dflags --- TODO use ErrUtils once that is disentangled from all the other GhcMonad stuff? +-- TODO use GHC.Utils.Error once that is disentangled from all the other GhcMonad stuff? showSupportedExtensions :: Maybe String -> IO () showSupportedExtensions m_top_dir = do res <- runExceptT $ do |