[Git][ghc/ghc][master] ByteArray# is unlifted, not unboxed
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Tue Oct 11 22:04:00 UTC 2022
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
d3863cb7 by Bodigrim at 2022-10-11T18:03:37-04:00
ByteArray# is unlifted, not unboxed
- - - - -
1 changed file:
- libraries/base/Data/Array/Byte.hs
Changes:
=====================================
libraries/base/Data/Array/Byte.hs
=====================================
@@ -30,11 +30,11 @@ import GHC.Show (intToDigit)
import GHC.ST (ST(..), runST)
import GHC.Word (Word8(..))
--- | Boxed wrapper for 'ByteArray#'.
+-- | Lifted wrapper for 'ByteArray#'.
--
-- Since 'ByteArray#' is an unlifted type and not a member of kind 'Data.Kind.Type',
-- things like @[ByteArray#]@ or @IO ByteArray#@ are ill-typed. To work around this
--- inconvenience this module provides a standard boxed wrapper, inhabiting 'Data.Kind.Type'.
+-- inconvenience this module provides a standard lifted wrapper, inhabiting 'Data.Kind.Type'.
-- Clients are expected to use 'ByteArray' in higher-level APIs,
-- but wrap and unwrap 'ByteArray' internally as they please
-- and use functions from "GHC.Exts".
@@ -42,11 +42,11 @@ import GHC.Word (Word8(..))
-- @since 4.17.0.0
data ByteArray = ByteArray ByteArray#
--- | Boxed wrapper for 'MutableByteArray#'.
+-- | Lifted wrapper for 'MutableByteArray#'.
--
-- Since 'MutableByteArray#' is an unlifted type and not a member of kind 'Data.Kind.Type',
-- things like @[MutableByteArray#]@ or @IO MutableByteArray#@ are ill-typed. To work around this
--- inconvenience this module provides a standard boxed wrapper, inhabiting 'Data.Kind.Type'.
+-- inconvenience this module provides a standard lifted wrapper, inhabiting 'Data.Kind.Type'.
-- Clients are expected to use 'MutableByteArray' in higher-level APIs,
-- but wrap and unwrap 'MutableByteArray' internally as they please
-- and use functions from "GHC.Exts".
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d3863cb7418b77f3cd49c219f1f42f64efb2cc93
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d3863cb7418b77f3cd49c219f1f42f64efb2cc93
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/20221011/60bdceea/attachment-0001.html>
More information about the ghc-commits
mailing list