summaryrefslogtreecommitdiff
path: root/compiler/deSugar
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/deSugar')
-rw-r--r--compiler/deSugar/Check.hs2
-rw-r--r--compiler/deSugar/Coverage.hs2
-rw-r--r--compiler/deSugar/Desugar.hs2
-rw-r--r--compiler/deSugar/DsArrows.hs2
-rw-r--r--compiler/deSugar/DsBinds.hs2
-rw-r--r--compiler/deSugar/DsCCall.hs2
-rw-r--r--compiler/deSugar/DsExpr.hs2
-rw-r--r--compiler/deSugar/DsForeign.hs2
-rw-r--r--compiler/deSugar/DsGRHSs.hs2
-rw-r--r--compiler/deSugar/DsListComp.hs2
-rw-r--r--compiler/deSugar/DsMeta.hs2
-rw-r--r--compiler/deSugar/DsMonad.hs2
-rw-r--r--compiler/deSugar/DsUsage.hs2
-rw-r--r--compiler/deSugar/DsUtils.hs2
-rw-r--r--compiler/deSugar/Match.hs2
-rw-r--r--compiler/deSugar/Match.hs-boot2
-rw-r--r--compiler/deSugar/MatchCon.hs2
-rw-r--r--compiler/deSugar/MatchLit.hs2
-rw-r--r--compiler/deSugar/PmExpr.hs2
-rw-r--r--compiler/deSugar/TmOracle.hs2
20 files changed, 40 insertions, 0 deletions
diff --git a/compiler/deSugar/Check.hs b/compiler/deSugar/Check.hs
index 72c94f814c..53b766f01b 100644
--- a/compiler/deSugar/Check.hs
+++ b/compiler/deSugar/Check.hs
@@ -20,6 +20,8 @@ module Check (
#include "HsVersions.h"
+import GhcPrelude
+
import TmOracle
import Unify( tcMatchTy )
import BasicTypes
diff --git a/compiler/deSugar/Coverage.hs b/compiler/deSugar/Coverage.hs
index a9d953dc0e..c58c1a489e 100644
--- a/compiler/deSugar/Coverage.hs
+++ b/compiler/deSugar/Coverage.hs
@@ -7,6 +7,8 @@
module Coverage (addTicksToBinds, hpcInitCode) where
+import GhcPrelude as Prelude
+
import qualified GHCi
import GHCi.RemoteTypes
import Data.Array
diff --git a/compiler/deSugar/Desugar.hs b/compiler/deSugar/Desugar.hs
index fbb6386c60..6351fa87ba 100644
--- a/compiler/deSugar/Desugar.hs
+++ b/compiler/deSugar/Desugar.hs
@@ -16,6 +16,8 @@ module Desugar (
#include "HsVersions.h"
+import GhcPrelude
+
import DsUsage
import DynFlags
import HscTypes
diff --git a/compiler/deSugar/DsArrows.hs b/compiler/deSugar/DsArrows.hs
index ec0f419319..24d7d8a61c 100644
--- a/compiler/deSugar/DsArrows.hs
+++ b/compiler/deSugar/DsArrows.hs
@@ -13,6 +13,8 @@ module DsArrows ( dsProcExpr ) where
#include "HsVersions.h"
+import GhcPrelude
+
import Match
import DsUtils
import DsMonad
diff --git a/compiler/deSugar/DsBinds.hs b/compiler/deSugar/DsBinds.hs
index d704f7ba08..c01cb40000 100644
--- a/compiler/deSugar/DsBinds.hs
+++ b/compiler/deSugar/DsBinds.hs
@@ -19,6 +19,8 @@ module DsBinds ( dsTopLHsBinds, dsLHsBinds, decomposeRuleLhs, dsSpec,
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} DsExpr( dsLExpr )
import {-# SOURCE #-} Match( matchWrapper )
diff --git a/compiler/deSugar/DsCCall.hs b/compiler/deSugar/DsCCall.hs
index f24dd9fea7..64ab9dfe80 100644
--- a/compiler/deSugar/DsCCall.hs
+++ b/compiler/deSugar/DsCCall.hs
@@ -18,6 +18,8 @@ module DsCCall
#include "HsVersions.h"
+import GhcPrelude
+
import CoreSyn
import DsMonad
diff --git a/compiler/deSugar/DsExpr.hs b/compiler/deSugar/DsExpr.hs
index b8ed3c5fbf..1ed45fcde2 100644
--- a/compiler/deSugar/DsExpr.hs
+++ b/compiler/deSugar/DsExpr.hs
@@ -14,6 +14,8 @@ module DsExpr ( dsExpr, dsLExpr, dsLExprNoLP, dsLocalBinds
#include "HsVersions.h"
+import GhcPrelude
+
import Match
import MatchLit
import DsBinds
diff --git a/compiler/deSugar/DsForeign.hs b/compiler/deSugar/DsForeign.hs
index 9b088b280d..01173c932d 100644
--- a/compiler/deSugar/DsForeign.hs
+++ b/compiler/deSugar/DsForeign.hs
@@ -13,6 +13,8 @@ Desugaring foreign declarations (see also DsCCall).
module DsForeign ( dsForeigns ) where
#include "HsVersions.h"
+import GhcPrelude
+
import TcRnMonad -- temp
import CoreSyn
diff --git a/compiler/deSugar/DsGRHSs.hs b/compiler/deSugar/DsGRHSs.hs
index c3dcdf6879..d521f537e5 100644
--- a/compiler/deSugar/DsGRHSs.hs
+++ b/compiler/deSugar/DsGRHSs.hs
@@ -12,6 +12,8 @@ module DsGRHSs ( dsGuarded, dsGRHSs, dsGRHS, isTrueLHsExpr ) where
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} DsExpr ( dsLExpr, dsLocalBinds )
import {-# SOURCE #-} Match ( matchSinglePat )
diff --git a/compiler/deSugar/DsListComp.hs b/compiler/deSugar/DsListComp.hs
index dc24183537..fea637fafe 100644
--- a/compiler/deSugar/DsListComp.hs
+++ b/compiler/deSugar/DsListComp.hs
@@ -13,6 +13,8 @@ module DsListComp ( dsListComp, dsPArrComp, dsMonadComp ) where
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} DsExpr ( dsExpr, dsLExpr, dsLExprNoLP, dsLocalBinds, dsSyntaxExpr )
import HsSyn
diff --git a/compiler/deSugar/DsMeta.hs b/compiler/deSugar/DsMeta.hs
index bcdee68edf..2a181e8d16 100644
--- a/compiler/deSugar/DsMeta.hs
+++ b/compiler/deSugar/DsMeta.hs
@@ -20,6 +20,8 @@ module DsMeta( dsBracket ) where
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} DsExpr ( dsExpr )
import MatchLit
diff --git a/compiler/deSugar/DsMonad.hs b/compiler/deSugar/DsMonad.hs
index c3a29733be..1eabf02161 100644
--- a/compiler/deSugar/DsMonad.hs
+++ b/compiler/deSugar/DsMonad.hs
@@ -52,6 +52,8 @@ module DsMonad (
dsNoLevPoly, dsNoLevPolyExpr, dsWhenNoErrs
) where
+import GhcPrelude
+
import TcRnMonad
import FamInstEnv
import CoreSyn
diff --git a/compiler/deSugar/DsUsage.hs b/compiler/deSugar/DsUsage.hs
index 62198046d0..2eebca818f 100644
--- a/compiler/deSugar/DsUsage.hs
+++ b/compiler/deSugar/DsUsage.hs
@@ -7,6 +7,8 @@ module DsUsage (
#include "HsVersions.h"
+import GhcPrelude
+
import DynFlags
import HscTypes
import TcRnTypes
diff --git a/compiler/deSugar/DsUtils.hs b/compiler/deSugar/DsUtils.hs
index 088db2c568..3748193a19 100644
--- a/compiler/deSugar/DsUtils.hs
+++ b/compiler/deSugar/DsUtils.hs
@@ -40,6 +40,8 @@ module DsUtils (
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} Match ( matchSimply )
import {-# SOURCE #-} DsExpr ( dsLExpr )
diff --git a/compiler/deSugar/Match.hs b/compiler/deSugar/Match.hs
index 95cf40dcf2..99529e7d78 100644
--- a/compiler/deSugar/Match.hs
+++ b/compiler/deSugar/Match.hs
@@ -13,6 +13,8 @@ module Match ( match, matchEquations, matchWrapper, matchSimply, matchSinglePat
#include "HsVersions.h"
+import GhcPrelude
+
import {-#SOURCE#-} DsExpr (dsLExpr, dsSyntaxExpr)
import DynFlags
diff --git a/compiler/deSugar/Match.hs-boot b/compiler/deSugar/Match.hs-boot
index 4096b9cd0b..bd23e1a795 100644
--- a/compiler/deSugar/Match.hs-boot
+++ b/compiler/deSugar/Match.hs-boot
@@ -1,4 +1,6 @@
module Match where
+
+import GhcPrelude
import Var ( Id )
import TcType ( Type )
import DsMonad ( DsM, EquationInfo, MatchResult )
diff --git a/compiler/deSugar/MatchCon.hs b/compiler/deSugar/MatchCon.hs
index 7923ae4eb5..5bf8c066f4 100644
--- a/compiler/deSugar/MatchCon.hs
+++ b/compiler/deSugar/MatchCon.hs
@@ -13,6 +13,8 @@ module MatchCon ( matchConFamily, matchPatSyn ) where
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} Match ( match )
import HsSyn
diff --git a/compiler/deSugar/MatchLit.hs b/compiler/deSugar/MatchLit.hs
index c3ba420232..355927deef 100644
--- a/compiler/deSugar/MatchLit.hs
+++ b/compiler/deSugar/MatchLit.hs
@@ -17,6 +17,8 @@ module MatchLit ( dsLit, dsOverLit, dsOverLit', hsLitKey
#include "HsVersions.h"
+import GhcPrelude
+
import {-# SOURCE #-} Match ( match )
import {-# SOURCE #-} DsExpr ( dsExpr, dsSyntaxExpr )
diff --git a/compiler/deSugar/PmExpr.hs b/compiler/deSugar/PmExpr.hs
index e9af145183..aa1bc814c5 100644
--- a/compiler/deSugar/PmExpr.hs
+++ b/compiler/deSugar/PmExpr.hs
@@ -15,6 +15,8 @@ module PmExpr (
#include "HsVersions.h"
+import GhcPrelude
+
import HsSyn
import Id
import Name
diff --git a/compiler/deSugar/TmOracle.hs b/compiler/deSugar/TmOracle.hs
index 115c0a882f..3644c7847c 100644
--- a/compiler/deSugar/TmOracle.hs
+++ b/compiler/deSugar/TmOracle.hs
@@ -22,6 +22,8 @@ module TmOracle (
#include "HsVersions.h"
+import GhcPrelude
+
import PmExpr
import Id