From 58ddf59fc1b6ef3310f4f379598b646e0dcfcf34 Mon Sep 17 00:00:00 2001 From: Adithya Kumar Date: Wed, 18 Dec 2024 19:23:56 +0530 Subject: [PATCH] Expose chunksOf from all the Array modules --- core/src/Streamly/Data/Array.hs | 3 +++ core/src/Streamly/Data/Array/Generic.hs | 3 +++ core/src/Streamly/Data/MutArray.hs | 3 +++ core/src/Streamly/Data/MutArray/Generic.hs | 3 +++ 4 files changed, 12 insertions(+) diff --git a/core/src/Streamly/Data/Array.hs b/core/src/Streamly/Data/Array.hs index 514fc47d8c..0bbb7349f0 100644 --- a/core/src/Streamly/Data/Array.hs +++ b/core/src/Streamly/Data/Array.hs @@ -74,6 +74,9 @@ module Streamly.Data.Array , reader , readerRev + -- * Stream of Arrays + , chunksOf + -- * Casting , cast , asBytes diff --git a/core/src/Streamly/Data/Array/Generic.hs b/core/src/Streamly/Data/Array/Generic.hs index 0d70180f56..fab9d79a31 100644 --- a/core/src/Streamly/Data/Array/Generic.hs +++ b/core/src/Streamly/Data/Array/Generic.hs @@ -33,6 +33,9 @@ module Streamly.Data.Array.Generic , reader -- , A.readerRev + -- * Stream of Arrays + , chunksOf + -- * Random Access , length , getIndex diff --git a/core/src/Streamly/Data/MutArray.hs b/core/src/Streamly/Data/MutArray.hs index 7b9cab5bb7..0844af405e 100644 --- a/core/src/Streamly/Data/MutArray.hs +++ b/core/src/Streamly/Data/MutArray.hs @@ -76,6 +76,9 @@ module Streamly.Data.MutArray , reader , readerRev + -- * Stream of Arrays + , chunksOf + -- * Casting , cast , asBytes diff --git a/core/src/Streamly/Data/MutArray/Generic.hs b/core/src/Streamly/Data/MutArray/Generic.hs index 55fb8b091e..e09e511ffc 100644 --- a/core/src/Streamly/Data/MutArray/Generic.hs +++ b/core/src/Streamly/Data/MutArray/Generic.hs @@ -54,6 +54,9 @@ module Streamly.Data.MutArray.Generic , reader -- , readerRev + -- * Stream of Arrays + , chunksOf + -- * Size , length