Remove Streamly.Data.Unbox module

This commit is contained in:
Ranjeet Kumar Ranjan 2022-10-13 17:40:04 +05:30 committed by Adithya Kumar
parent 879c24e774
commit 6690046f41
5 changed files with 8 additions and 34 deletions

View File

@ -53,7 +53,8 @@
module Streamly.Data.Array.Unboxed
(
A.Array
Unbox (..)
, A.Array
-- * Arrays
-- ** Construction
@ -93,6 +94,7 @@ module Streamly.Data.Array.Unboxed
where
import Streamly.Internal.Data.Array.Unboxed as A
import Streamly.Internal.Data.Unboxed (Unbox (..))
-- $setup
-- >>> :m

View File

@ -13,7 +13,8 @@
module Streamly.Data.Array.Unboxed.Mut
(
Array
Unbox (..)
, Array
-- * Arrays
-- ** Construction
@ -58,3 +59,4 @@ where
import Prelude hiding (length, read)
import Streamly.Internal.Data.Array.Unboxed.Mut
import Streamly.Internal.Data.Unboxed (Unbox (..))

View File

@ -1,28 +0,0 @@
-- |
-- Module : Streamly.Data.Unbox
-- Copyright : (c) 2022 Composewell Technologies
--
-- License : BSD3
-- Maintainer : streamly@composewell.com
-- Stability : released
-- Portability : GHC
--
-- This module provides the 'Unbox' type class for converting Haskell values to
-- unboxed representation in a 'MutableByteArray' and boxing values from
-- 'MutableByteArray' to create Haskell representation.
--
module Streamly.Data.Unbox
(
Unbox(..)
, MutableByteArray(..)
)
where
import Streamly.Internal.Data.Unboxed (Unbox(..), MutableByteArray(..))
-- $setup
-- >>> :m
-- >>> :set -XFlexibleContexts
-- >>> :set -package streamly
-- >>> import Streamly.Internal.Data.Unboxed (Unbox(..), MutableByteArray(..))

View File

@ -352,7 +352,6 @@ library
-- streamly-core exposed modules
, Streamly.Data.Stream
, Streamly.Data.Stream.Zip
, Streamly.Data.Unbox
, Streamly.Data.Fold
, Streamly.Data.Fold.Tee
, Streamly.Data.Parser

View File

@ -4,10 +4,9 @@
## 0.9.0 (Unreleased)
* Remove support for GHC 8.4.*
* The unboxed arrays now require `Unbox` instance along with `Storable` for the
stored type. The `Unbox` typeclass can be found in `Streamly.Data.Unbox`.
* New modules for unboxed mutable & unboxed immutable arrays are added.
* A new module dedicated for unboxing is added.
* The unboxed arrays now require `Unbox` instead of `Storable` for the stored
type. The `Unbox` typeclass can be found in `Streamly.Data.Array.Unboxed`.
* Following APIs have been renamed in Streamly.Network.Socket module:
readWithBufferOf -> readWith