summaryrefslogtreecommitdiff
path: root/libraries/ghc-heap
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ghc-heap')
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap.hs1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/Closures.hs1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/Constants.hsc1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/InfoTable.hsc1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/InfoTable/Types.hsc1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/InfoTableProf.hsc1
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc1
-rw-r--r--libraries/ghc-heap/ghc-heap.cabal.in3
9 files changed, 11 insertions, 0 deletions
diff --git a/libraries/ghc-heap/GHC/Exts/Heap.hs b/libraries/ghc-heap/GHC/Exts/Heap.hs
index 535596fda5..16b00e0dfb 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap.hs
+++ b/libraries/ghc-heap/GHC/Exts/Heap.hs
@@ -45,6 +45,7 @@ module GHC.Exts.Heap (
, areBoxesEqual
) where
+import Prelude
import GHC.Exts.Heap.Closures
import GHC.Exts.Heap.ClosureTypes
import GHC.Exts.Heap.Constants
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs b/libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs
index 677e3b64e7..1d25abee51 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs
+++ b/libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs
@@ -6,6 +6,7 @@ module GHC.Exts.Heap.ClosureTypes
, closureTypeHeaderSize
) where
+import Prelude -- See note [Why do we import Prelude here?]
import GHC.Generics
{- ---------------------------------------------
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
index bdfac8bf8b..facb801a97 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
+++ b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
@@ -20,6 +20,7 @@ module GHC.Exts.Heap.Closures (
, asBox
) where
+import Prelude -- See note [Why do we import Prelude here?]
import GHC.Exts.Heap.Constants
#if defined(PROFILING)
import GHC.Exts.Heap.InfoTableProf
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Constants.hsc b/libraries/ghc-heap/GHC/Exts/Heap/Constants.hsc
index 757e76ce23..2b57c13489 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/Constants.hsc
+++ b/libraries/ghc-heap/GHC/Exts/Heap/Constants.hsc
@@ -8,6 +8,7 @@ module GHC.Exts.Heap.Constants
#include "MachDeps.h"
+import Prelude -- See note [Why do we import Prelude here?]
import Data.Bits
wORD_SIZE, tAG_MASK, wORD_SIZE_IN_BITS :: Int
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/InfoTable.hsc b/libraries/ghc-heap/GHC/Exts/Heap/InfoTable.hsc
index d6f1ab0e95..25fe4982aa 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/InfoTable.hsc
+++ b/libraries/ghc-heap/GHC/Exts/Heap/InfoTable.hsc
@@ -7,6 +7,7 @@ module GHC.Exts.Heap.InfoTable
#include "Rts.h"
+import Prelude -- See note [Why do we import Prelude here?]
import GHC.Exts.Heap.InfoTable.Types
#if !defined(TABLES_NEXT_TO_CODE)
import GHC.Exts.Heap.Constants
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/InfoTable/Types.hsc b/libraries/ghc-heap/GHC/Exts/Heap/InfoTable/Types.hsc
index 0ba535d039..9a19360183 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/InfoTable/Types.hsc
+++ b/libraries/ghc-heap/GHC/Exts/Heap/InfoTable/Types.hsc
@@ -8,6 +8,7 @@ module GHC.Exts.Heap.InfoTable.Types
#include "Rts.h"
+import Prelude -- See note [Why do we import Prelude here?]
import GHC.Generics
import GHC.Exts.Heap.ClosureTypes
import Foreign
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/InfoTableProf.hsc b/libraries/ghc-heap/GHC/Exts/Heap/InfoTableProf.hsc
index cd030bfa1a..56d7caae70 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/InfoTableProf.hsc
+++ b/libraries/ghc-heap/GHC/Exts/Heap/InfoTableProf.hsc
@@ -11,6 +11,7 @@ module GHC.Exts.Heap.InfoTableProf
#define PROFILING
#include "Rts.h"
+import Prelude -- See note [Why do we import Prelude here?]
import GHC.Exts.Heap.InfoTable.Types
#if !defined(TABLES_NEXT_TO_CODE)
import GHC.Exts.Heap.Constants
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc b/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc
index 3f09700225..fab56d54d5 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc
+++ b/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc
@@ -6,6 +6,7 @@ module GHC.Exts.Heap.Utils (
#include "Rts.h"
+import Prelude -- See note [Why do we import Prelude here?]
import GHC.Exts.Heap.Constants
import GHC.Exts.Heap.InfoTable
diff --git a/libraries/ghc-heap/ghc-heap.cabal.in b/libraries/ghc-heap/ghc-heap.cabal.in
index 6f9bd2d756..386c984222 100644
--- a/libraries/ghc-heap/ghc-heap.cabal.in
+++ b/libraries/ghc-heap/ghc-heap.cabal.in
@@ -28,6 +28,9 @@ library
ghc-options: -Wall
cmm-sources: cbits/HeapPrim.cmm
+
+ default-extensions: NoImplicitPrelude
+
exposed-modules: GHC.Exts.Heap
GHC.Exts.Heap.Closures
GHC.Exts.Heap.ClosureTypes