Wolfgang Jeltsch pushed to branch wip/jeltsch/ghc-9-14-building-base at Glasgow Haskell Compiler / GHC Commits: 0064e044 by Wolfgang Jeltsch at 2026-09-07T16:55:21+03:00 Add conditional import of `GHC.Essentials` - - - - - 1 changed file: - libraries/base/src/GHC/Stack.hs Changes: ===================================== libraries/base/src/GHC/Stack.hs ===================================== @@ -1,5 +1,6 @@ {-# LANGUAGE Safe #-} +{-# LANGUAGE CPP #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ImplicitParams #-} @@ -55,6 +56,12 @@ module GHC.Stack import GHC.Internal.Stack +#if __GLASGOW_HASKELL__ > 1000 + +import GHC.Essentials as Rebindable + +#endif + -- | Explicitly bring the empty call stack into scope. -- -- Mostly useful for silencing warnings generated by @-Wdefaulted-callstack@ in View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0064e044d941fb569f1bf217a8a16a41... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0064e044d941fb569f1bf217a8a16a41... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help