From 00b41429d0fa0f387ac82308f3d9819b2cfdfdbf Mon Sep 17 00:00:00 2001 From: Adithya Kumar Date: Sat, 16 Dec 2023 00:01:22 +0530 Subject: [PATCH] Expose pinnedSerialize & deserialize via Streamly.Data.Array --- core/docs/Changelog.md | 1 + core/src/Streamly/Data/Array.hs | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/docs/Changelog.md b/core/docs/Changelog.md index 27cf88b9..4f03c366 100644 --- a/core/docs/Changelog.md +++ b/core/docs/Changelog.md @@ -3,6 +3,7 @@ ## 0.2.1 (Dec 2023) * Make the serialization of the unit constructor deterministic. +* Expose `pinnedSerialize` & `deserialize` via `Streamly.Data.Array`. ## 0.2.0 (Nov 2023) diff --git a/core/src/Streamly/Data/Array.hs b/core/src/Streamly/Data/Array.hs index 6dbd02f8..a5748f5d 100644 --- a/core/src/Streamly/Data/Array.hs +++ b/core/src/Streamly/Data/Array.hs @@ -83,16 +83,20 @@ module Streamly.Data.Array -- , (!!) , getIndex + -- * Serialization + , pinnedSerialize + , deserialize + -- * Re-exports , Unbox (..) - + , Serialize(..) ) where #include "inline.hs" import Streamly.Internal.Data.Array -import Streamly.Internal.Data.Unbox (Unbox (..)) +import Streamly.Internal.Data.MutByteArray (Unbox(..), Serialize(..)) import Prelude hiding (read, length)