[Git][ghc/ghc][master] base: Final deprecation of GHC.Pack

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Aug 21 17:12:36 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
bd82ac9f by Hécate Kleidukos at 2024-08-21T13:12:12-04:00
base: Final deprecation of GHC.Pack

The timeline mandated by #21461 has come to its term and after two years
and four minor releases, we are finally removing GHC.Pack from base.

Closes #21536

- - - - -


9 changed files:

- + a.out
- docs/users_guide/9.12.1-notes.rst
- libraries/base/base.cabal
- libraries/base/changelog.md
- − libraries/base/src/GHC/Pack.hs
- testsuite/tests/interface-stability/base-exports.stdout
- testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs
- testsuite/tests/interface-stability/base-exports.stdout-mingw32
- testsuite/tests/interface-stability/base-exports.stdout-ws-32


Changes:

=====================================
a.out
=====================================
Binary files /dev/null and b/a.out differ


=====================================
docs/users_guide/9.12.1-notes.rst
=====================================
@@ -157,6 +157,7 @@ Runtime system
   https://github.com/haskell/core-libraries-committee/issues/231
   https://github.com/haskell/core-libraries-committee/issues/261
 
+- The `deprecation process of GHC.Pack <https://gitlab.haskell.org/ghc/ghc/-/issues/21461>` has come its term. The module has now been removed from ``base``.
 
 ``ghc-prim`` library
 ~~~~~~~~~~~~~~~~~~~~


=====================================
libraries/base/base.cabal
=====================================
@@ -217,7 +217,6 @@ Library
         , GHC.Num
         , GHC.OldList
         , GHC.OverloadedLabels
-        , GHC.Pack
         , GHC.Profiling
         , GHC.Ptr
         , GHC.Read


=====================================
libraries/base/changelog.md
=====================================
@@ -18,6 +18,7 @@
   * Add exception type metadata to default exception handler output.
     ([CLC proposal #231](https://github.com/haskell/core-libraries-committee/issues/231)
     and [CLC proposal #261](https://github.com/haskell/core-libraries-committee/issues/261))
+  * The [deprecation process of GHC.Pack](https://gitlab.haskell.org/ghc/ghc/-/issues/21461) has come its term. The module has now been removed from `base`.
 
 ## 4.20.0.0 May 2024
   * Shipped with GHC 9.10.1


=====================================
libraries/base/src/GHC/Pack.hs deleted
=====================================
@@ -1,37 +0,0 @@
-{-# LANGUAGE MagicHash #-}
-{-# OPTIONS_HADDOCK not-home #-}
-
--- |
---
--- Module      :  GHC.Pack
--- Copyright   :  (c) The University of Glasgow 1997-2002
--- License     :  see libraries/base/LICENSE
---
--- Maintainer  :  ghc-devs at haskell.org
--- Stability   :  internal
--- Portability :  non-portable (GHC Extensions)
---
--- ⚠ Warning: Starting @base-4.18@, this module is being deprecated.
--- See https://gitlab.haskell.org/ghc/ghc/-/issues/21461 for more information.
---
---
---
--- This module provides a small set of low-level functions for packing
--- and unpacking a chunk of bytes. Used by code emitted by the compiler
--- plus the prelude libraries.
---
--- The programmer level view of packed strings is provided by a GHC
--- system library PackedString.
---
-
-module GHC.Pack
-    {-# DEPRECATED "The exports of this module should be instead imported from GHC.Exts" #-}
-    (packCString#,
-     unpackCString,
-     unpackCString#,
-     unpackNBytes#,
-     unpackFoldrCString#,
-     unpackAppendCString#
-     ) where
-
-import GHC.Internal.Pack


=====================================
testsuite/tests/interface-stability/base-exports.stdout
=====================================
@@ -9027,15 +9027,6 @@ module GHC.OverloadedLabels where
     fromLabel :: a
     {-# MINIMAL fromLabel #-}
 
-module GHC.Pack where
-  -- Safety: None
-  packCString# :: [GHC.Types.Char] -> GHC.Prim.ByteArray#
-  unpackAppendCString# :: GHC.Prim.Addr# -> [GHC.Types.Char] -> [GHC.Types.Char]
-  unpackCString :: forall a. GHC.Internal.Ptr.Ptr a -> [GHC.Types.Char]
-  unpackCString# :: GHC.Prim.Addr# -> [GHC.Types.Char]
-  unpackFoldrCString# :: forall a. GHC.Prim.Addr# -> (GHC.Types.Char -> a -> a) -> a -> a
-  unpackNBytes# :: GHC.Prim.Addr# -> GHC.Prim.Int# -> [GHC.Types.Char]
-
 module GHC.Profiling where
   -- Safety: Safe
   requestHeapCensus :: GHC.Types.IO ()


=====================================
testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs
=====================================
@@ -12069,15 +12069,6 @@ module GHC.OverloadedLabels where
     fromLabel :: a
     {-# MINIMAL fromLabel #-}
 
-module GHC.Pack where
-  -- Safety: None
-  packCString# :: [GHC.Types.Char] -> GHC.Prim.ByteArray#
-  unpackAppendCString# :: GHC.Prim.Addr# -> [GHC.Types.Char] -> [GHC.Types.Char]
-  unpackCString :: forall a. GHC.Internal.Ptr.Ptr a -> [GHC.Types.Char]
-  unpackCString# :: GHC.Prim.Addr# -> [GHC.Types.Char]
-  unpackFoldrCString# :: forall a. GHC.Prim.Addr# -> (GHC.Types.Char -> a -> a) -> a -> a
-  unpackNBytes# :: GHC.Prim.Addr# -> GHC.Prim.Int# -> [GHC.Types.Char]
-
 module GHC.Profiling where
   -- Safety: Safe
   requestHeapCensus :: GHC.Types.IO ()


=====================================
testsuite/tests/interface-stability/base-exports.stdout-mingw32
=====================================
@@ -9251,15 +9251,6 @@ module GHC.OverloadedLabels where
     fromLabel :: a
     {-# MINIMAL fromLabel #-}
 
-module GHC.Pack where
-  -- Safety: None
-  packCString# :: [GHC.Types.Char] -> GHC.Prim.ByteArray#
-  unpackAppendCString# :: GHC.Prim.Addr# -> [GHC.Types.Char] -> [GHC.Types.Char]
-  unpackCString :: forall a. GHC.Internal.Ptr.Ptr a -> [GHC.Types.Char]
-  unpackCString# :: GHC.Prim.Addr# -> [GHC.Types.Char]
-  unpackFoldrCString# :: forall a. GHC.Prim.Addr# -> (GHC.Types.Char -> a -> a) -> a -> a
-  unpackNBytes# :: GHC.Prim.Addr# -> GHC.Prim.Int# -> [GHC.Types.Char]
-
 module GHC.Profiling where
   -- Safety: Safe
   requestHeapCensus :: GHC.Types.IO ()


=====================================
testsuite/tests/interface-stability/base-exports.stdout-ws-32
=====================================
@@ -9027,15 +9027,6 @@ module GHC.OverloadedLabels where
     fromLabel :: a
     {-# MINIMAL fromLabel #-}
 
-module GHC.Pack where
-  -- Safety: None
-  packCString# :: [GHC.Types.Char] -> GHC.Prim.ByteArray#
-  unpackAppendCString# :: GHC.Prim.Addr# -> [GHC.Types.Char] -> [GHC.Types.Char]
-  unpackCString :: forall a. GHC.Internal.Ptr.Ptr a -> [GHC.Types.Char]
-  unpackCString# :: GHC.Prim.Addr# -> [GHC.Types.Char]
-  unpackFoldrCString# :: forall a. GHC.Prim.Addr# -> (GHC.Types.Char -> a -> a) -> a -> a
-  unpackNBytes# :: GHC.Prim.Addr# -> GHC.Prim.Int# -> [GHC.Types.Char]
-
 module GHC.Profiling where
   -- Safety: Safe
   requestHeapCensus :: GHC.Types.IO ()



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/bd82ac9f4716e28b185758ae514691d5a50c003f
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/20240821/46d4b766/attachment-0001.html>


More information about the ghc-commits mailing list