From a4bb3a5116e7d3061e988041643d5d1742fc395f Mon Sep 17 00:00:00 2001 From: Ben Gamari <ben@smart-cactus.org> Date: Mon, 8 Apr 2024 13:07:54 -0400 Subject: [PATCH] base: Deprecate GHC.Pack As proposed in #21461. Closes #21540. --- libraries/base/changelog.md | 1 + libraries/base/src/GHC/Pack.hs | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md index 7d0849932756..9eb8f6905fa9 100644 --- a/libraries/base/changelog.md +++ b/libraries/base/changelog.md @@ -4,6 +4,7 @@ * Improve `toInteger :: Word32 -> Integer` on 64-bit platforms ([CLC proposal #259](https://github.com/haskell/core-libraries-committee/issues/259)) ## 4.20.0.0 *TBA* + * Deprecate `GHC.Pack` ([#21461](https://gitlab.haskell.org/ghc/ghc/-/issues/21461)) * Export `foldl'` from `Prelude` ([CLC proposal #167](https://github.com/haskell/core-libraries-committee/issues/167)) * The top-level handler for uncaught exceptions now displays the output of `displayException` rather than `show` ([CLC proposal #198](https://github.com/haskell/core-libraries-committee/issues/198)) * Add `permutations` and `permutations1` to `Data.List.NonEmpty` ([CLC proposal #68](https://github.com/haskell/core-libraries-committee/issues/68)) diff --git a/libraries/base/src/GHC/Pack.hs b/libraries/base/src/GHC/Pack.hs index cff9e760810b..1e66044fdbfe 100644 --- a/libraries/base/src/GHC/Pack.hs +++ b/libraries/base/src/GHC/Pack.hs @@ -25,6 +25,7 @@ -- module GHC.Pack + {-# DEPRECATED "The exports of this module should be instead imported from GHC.Exts" #-} (packCString#, unpackCString, unpackCString#, -- GitLab