Wolfgang Jeltsch pushed to branch wip/jeltsch/base-buildable-with-ghc-9-14 at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • libraries/base/src/Prelude.hs
    1
    +{-# LANGUAGE CPP #-}
    
    1 2
     {-# LANGUAGE Trustworthy #-}
    
    2 3
     {-# LANGUAGE NoImplicitPrelude #-}
    
    3 4
     {-# LANGUAGE ExplicitNamespaces #-}
    
    ... ... @@ -176,14 +177,16 @@ import GHC.Internal.Data.Maybe
    176 177
     import GHC.Internal.Data.Traversable ( Traversable(..) )
    
    177 178
     import GHC.Internal.Data.Tuple
    
    178 179
     
    
    179
    -import GHC.Internal.Base hiding ( foldr, mapM, sequence )
    
    180
    +#if __GLASGOW_HASKELL__ >= 1000
    
    180 181
     import GHC.Internal.Classes
    
    181 182
     import GHC.Internal.Err
    
    183
    +import GHC.Internal.Prim (seq)
    
    184
    +import GHC.Internal.Types
    
    185
    +#endif
    
    186
    +import GHC.Internal.Base hiding ( foldr, mapM, sequence )
    
    182 187
     import Text.Read
    
    183 188
     import GHC.Internal.Enum
    
    184 189
     import GHC.Internal.Num
    
    185
    -import GHC.Internal.Prim (seq)
    
    186 190
     import GHC.Internal.Real
    
    187 191
     import GHC.Internal.Float
    
    188 192
     import GHC.Internal.Show
    189
    -import GHC.Internal.Types