diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-05-06 22:22:02 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-05-12 21:41:44 -0400 |
commit | 0ef119071347f7bc14f0fa89904b0cfd0b230ac1 (patch) | |
tree | 7a80b3942ae6bd18391f9b924ad55bb001392288 /compiler/GHC/Driver | |
parent | bfabf94f63b6644bd32982fd13ea0c8bca9aeae4 (diff) | |
download | haskell-0ef119071347f7bc14f0fa89904b0cfd0b230ac1.tar.gz |
Fully remove HsVersions.h
Replace uses of WARN macro with calls to:
warnPprTrace :: Bool -> SDoc -> a -> a
Remove the now unused HsVersions.h
Bump haddock submodule
Diffstat (limited to 'compiler/GHC/Driver')
-rw-r--r-- | compiler/GHC/Driver/Backpack.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/CmdLine.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/CodeOutput.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/Env.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/Main.hs | 3 | ||||
-rw-r--r-- | compiler/GHC/Driver/Make.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/MakeFile.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/Phases.hs | 2 | ||||
-rw-r--r-- | compiler/GHC/Driver/Pipeline.hs | 4 | ||||
-rw-r--r-- | compiler/GHC/Driver/Session.hs | 2 |
10 files changed, 1 insertions, 22 deletions
diff --git a/compiler/GHC/Driver/Backpack.hs b/compiler/GHC/Driver/Backpack.hs index e0e5b183ab..873e7867c2 100644 --- a/compiler/GHC/Driver/Backpack.hs +++ b/compiler/GHC/Driver/Backpack.hs @@ -17,8 +17,6 @@ module GHC.Driver.Backpack (doBackpack) where -#include "HsVersions.h" - import GHC.Prelude -- In a separate module because it hooks into the parser. diff --git a/compiler/GHC/Driver/CmdLine.hs b/compiler/GHC/Driver/CmdLine.hs index 1283723e05..56451ec199 100644 --- a/compiler/GHC/Driver/CmdLine.hs +++ b/compiler/GHC/Driver/CmdLine.hs @@ -23,8 +23,6 @@ module GHC.Driver.CmdLine EwM, runEwM, addErr, addWarn, addFlagWarn, getArg, getCurLoc, liftEwM ) where -#include "HsVersions.h" - import GHC.Prelude import GHC.Utils.Misc diff --git a/compiler/GHC/Driver/CodeOutput.hs b/compiler/GHC/Driver/CodeOutput.hs index 2f028f9c7f..611cf498d3 100644 --- a/compiler/GHC/Driver/CodeOutput.hs +++ b/compiler/GHC/Driver/CodeOutput.hs @@ -14,8 +14,6 @@ module GHC.Driver.CodeOutput ) where -#include "HsVersions.h" - import GHC.Prelude import GHC.Platform import GHC.ForeignSrcLang diff --git a/compiler/GHC/Driver/Env.hs b/compiler/GHC/Driver/Env.hs index 3d59e72468..4fa77a8eb8 100644 --- a/compiler/GHC/Driver/Env.hs +++ b/compiler/GHC/Driver/Env.hs @@ -25,8 +25,6 @@ module GHC.Driver.Env ) where -#include "HsVersions.h" - import GHC.Prelude import GHC.Driver.Ppr diff --git a/compiler/GHC/Driver/Main.hs b/compiler/GHC/Driver/Main.hs index 4768c17f9f..e9e203c06b 100644 --- a/compiler/GHC/Driver/Main.hs +++ b/compiler/GHC/Driver/Main.hs @@ -234,9 +234,6 @@ import Data.Functor import Control.DeepSeq (force) import Data.Bifunctor (first, bimap) -#include "HsVersions.h" - - {- ********************************************************************** %* * Initialisation diff --git a/compiler/GHC/Driver/Make.hs b/compiler/GHC/Driver/Make.hs index 4181e13ab5..003bc6e0b0 100644 --- a/compiler/GHC/Driver/Make.hs +++ b/compiler/GHC/Driver/Make.hs @@ -40,8 +40,6 @@ module GHC.Driver.Make ( ModNodeMap(..), emptyModNodeMap, modNodeMapElems, modNodeMapLookup, modNodeMapInsert ) where -#include "HsVersions.h" - import GHC.Prelude import GHC.Tc.Utils.Backpack diff --git a/compiler/GHC/Driver/MakeFile.hs b/compiler/GHC/Driver/MakeFile.hs index bffeb65850..c69e4538fb 100644 --- a/compiler/GHC/Driver/MakeFile.hs +++ b/compiler/GHC/Driver/MakeFile.hs @@ -13,8 +13,6 @@ module GHC.Driver.MakeFile ) where -#include "HsVersions.h" - import GHC.Prelude import qualified GHC diff --git a/compiler/GHC/Driver/Phases.hs b/compiler/GHC/Driver/Phases.hs index 40aa2055c3..4f9cbf83a1 100644 --- a/compiler/GHC/Driver/Phases.hs +++ b/compiler/GHC/Driver/Phases.hs @@ -38,8 +38,6 @@ module GHC.Driver.Phases ( phaseForeignLanguage ) where -#include "HsVersions.h" - import GHC.Prelude import GHC.Platform diff --git a/compiler/GHC/Driver/Pipeline.hs b/compiler/GHC/Driver/Pipeline.hs index b116c30693..d9246ac0f9 100644 --- a/compiler/GHC/Driver/Pipeline.hs +++ b/compiler/GHC/Driver/Pipeline.hs @@ -35,9 +35,7 @@ module GHC.Driver.Pipeline ( linkingNeeded, checkLinkInfo, writeInterfaceOnlyMode ) where -#include <ghcplatform.h> -#include "HsVersions.h" - +#include "ghcplatform.h" import GHC.Prelude import GHC.Platform diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs index 25c55819c5..6a2f4c6b73 100644 --- a/compiler/GHC/Driver/Session.hs +++ b/compiler/GHC/Driver/Session.hs @@ -216,8 +216,6 @@ module GHC.Driver.Session ( initSDocContext, initDefaultSDocContext, ) where -#include "HsVersions.h" - import GHC.Prelude import GHC.Platform |