[Git][ghc/ghc][wip/jeltsch/base-buildable-with-ghc-9-14] Disable some imports into `Prelude` for GHC 9.14
Wolfgang Jeltsch pushed to branch wip/jeltsch/base-buildable-with-ghc-9-14 at Glasgow Haskell Compiler / GHC Commits: 8bdbb20c by Wolfgang Jeltsch at 2026-05-19T16:18:07+03:00 Disable some imports into `Prelude` for GHC 9.14 - - - - - 1 changed file: - libraries/base/src/Prelude.hs Changes: ===================================== libraries/base/src/Prelude.hs ===================================== @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE ExplicitNamespaces #-} @@ -176,14 +177,16 @@ import GHC.Internal.Data.Maybe import GHC.Internal.Data.Traversable ( Traversable(..) ) import GHC.Internal.Data.Tuple -import GHC.Internal.Base hiding ( foldr, mapM, sequence ) +#if __GLASGOW_HASKELL__ >= 1000 import GHC.Internal.Classes import GHC.Internal.Err +import GHC.Internal.Prim (seq) +import GHC.Internal.Types +#endif +import GHC.Internal.Base hiding ( foldr, mapM, sequence ) import Text.Read import GHC.Internal.Enum import GHC.Internal.Num -import GHC.Internal.Prim (seq) import GHC.Internal.Real import GHC.Internal.Float import GHC.Internal.Show -import GHC.Internal.Types View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8bdbb20c3e6c8187ff11c933ab4e830b... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8bdbb20c3e6c8187ff11c933ab4e830b... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)