summaryrefslogtreecommitdiff
path: root/libraries/ghc-heap
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-05-30 11:20:58 -0400
committerBen Gamari <ben@smart-cactus.org>2018-05-30 18:06:42 -0400
commit64fd0fac838426fb87322712da34dabd211c3d89 (patch)
treea8a38ada45c62691b35847b223508e1e287152a1 /libraries/ghc-heap
parent1d1e2b77fdc2babdf4fff72b9120c6831e7b422f (diff)
downloadhaskell-64fd0fac838426fb87322712da34dabd211c3d89.tar.gz
ghc-heap: Add dependency from GHC.Exts.Heap.Closures to InfoTableProf
`ghc -M` currently doesn't properly account for ways when generating dependencies (#15197). This import ensures correct build-ordering between this module and GHC.Exts.Heap.InfoTableProf. Otherwise the profiled build may fail as described in #15197.
Diffstat (limited to 'libraries/ghc-heap')
-rw-r--r--libraries/ghc-heap/GHC/Exts/Heap/Closures.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
index f355a62510..09a94a0f3f 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
+++ b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
@@ -23,6 +23,12 @@ import GHC.Exts.Heap.Constants
import GHC.Exts.Heap.InfoTableProf
#else
import GHC.Exts.Heap.InfoTable
+
+-- `ghc -M` currently doesn't properly account for ways when generating
+-- dependencies (#15197). This import ensures correct build-ordering between
+-- this module and GHC.Exts.Heap.InfoTableProf. It should be removed when #15197
+-- is fixed.
+import GHC.Exts.Heap.InfoTableProf ()
#endif
import Data.Bits