[Git][ghc/ghc][wip/romes/25110] base: Deprecate BCO primops exports from GHC.Exts

Rodrigo Mesquita (@alt-romes) gitlab at gitlab.haskell.org
Tue Sep 3 14:34:00 UTC 2024



Rodrigo Mesquita pushed to branch wip/romes/25110 at Glasgow Haskell Compiler / GHC


Commits:
919de09b by Rodrigo Mesquita at 2024-09-03T15:33:47+01:00
base: Deprecate BCO primops exports from GHC.Exts

See https://github.com/haskell/core-libraries-committee/issues/212.

These reexports will be removed in GHC 9.14.

- - - - -


1 changed file:

- libraries/base/src/GHC/Exts.hs


Changes:

=====================================
libraries/base/src/GHC/Exts.hs
=====================================
@@ -23,6 +23,12 @@ module GHC.Exts
      -- **  Legacy interface for arrays of arrays
      module GHC.Internal.ArrayArray,
      -- *  Primitive operations
+     {-# DEPRECATED ["The BCO, mkApUpd0#, and newBCO# re-exports from GHC.Exts have been deprecated and will be removed in 9.14", "These symbols should be imported from ghc-internal instead if needed."] #-}
+     Prim.BCO,
+     {-# DEPRECATED ["The BCO, mkApUpd0#, and newBCO# re-exports from GHC.Exts have been deprecated and will be removed in 9.14", "These symbols should be imported from ghc-internal instead if needed."] #-}
+     Prim.mkApUpd0#,
+     {-# DEPRECATED ["The BCO, mkApUpd0#, and newBCO# re-exports from GHC.Exts have been deprecated and will be removed in 9.14", "These symbols should be imported from ghc-internal instead if needed."] #-}
+     Prim.newBCO#,
      module GHC.Prim,
      module GHC.Prim.Ext,
      -- **  Running 'RealWorld' state thread
@@ -112,7 +118,10 @@ module GHC.Exts
 
 import GHC.Internal.Exts
 import GHC.Internal.ArrayArray
-import GHC.Prim hiding ( coerce, dataToTagSmall#, dataToTagLarge#, whereFrom# )
+import GHC.Prim hiding ( coerce, dataToTagSmall#, dataToTagLarge#, whereFrom#
+                       -- Deprecated
+                       , BCO, mkApUpd0#, newBCO# )
+import qualified GHC.Prim as Prim ( BCO, mkApUpd0#, newBCO# )
   -- Hide dataToTag# ops because they are expected to break for
   -- GHC-internal reasons in the near future, and shouldn't
   -- be exposed from base (not even GHC.Exts)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/919de09bf32869ce495e135f701b38547f0a0029

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/919de09bf32869ce495e135f701b38547f0a0029
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240903/8c6d4900/attachment-0001.html>


More information about the ghc-commits mailing list