on master help sign in
Move Memory/Malloc.hs to the Internal directory and expose it

Move it to Internal.Foreign.Malloc

commit18becf54c16834734f8ee4d78a7d684d3af5fde7 authoradithyaov <adi.obilisetty@gmail.com> dateFri 28 Aug 2020, 00:56 (6 years ago) parent9ccf931
3 files changed+8−6
src/Streamly/Memory/Malloc.hs → src/Streamly/Internal/Foreign/Malloc.hs+3−3 src/Streamly/Internal/Memory/Mutable/Array/Types.hs+1−1 streamly.cabal+4−2
src/Streamly/Memory/Malloc.hs → src/Streamly/Internal/Foreign/Malloc.hsrenamed+3−3
@@ -1,15 +1,15 @@
11#include "inline.hs"
22
33-- |
4−-- Module : Streamly.Memory.Malloc
4+-- Module : Streamly.Internal.Foreign.Malloc
55-- Copyright : (c) 2019 Composewell Technologies
66--
7−-- License : BSD3
7+-- License : BSD-3-Clause
88-- Maintainer : streamly@composewell.com
99-- Stability : experimental
1010-- Portability : GHC
1111--
12−module Streamly.Memory.Malloc
12+module Streamly.Internal.Foreign.Malloc
1313 (
1414 mallocForeignPtrAlignedBytes
1515 , mallocForeignPtrAlignedUnmanagedBytes
src/Streamly/Internal/Memory/Mutable/Array/Types.hs+1−1
@@ -119,7 +119,7 @@ import Text.Read (readPrec, readListPrec, readListPrecDefault)
119119#ifdef DEVBUILD
120120import qualified Data.Foldable as F
121121#endif
122−import qualified Streamly.Memory.Malloc as Malloc
122+import qualified Streamly.Internal.Foreign.Malloc as Malloc
123123import qualified Streamly.Internal.Data.Stream.StreamD.Type as D
124124import qualified Streamly.Internal.Data.Stream.StreamK as K
125125import qualified GHC.Exts as Exts
streamly.cabal+4−2
@@ -360,7 +360,6 @@ library
360360 , Streamly.Data.SmallArray
361361
362362 -- Memory storage
363− Streamly.Memory.Malloc
364363 , Streamly.Memory.Ring
365364
366365 , Streamly.FileSystem.IOVec
@@ -374,7 +373,7 @@ library
374373 , Streamly.Data.Unfold
375374 , Streamly.Data.Unicode.Stream
376375
377− -- IO devices
376+ -- IO devices
378377 , Streamly.Memory.Array
379378 , Streamly.FileSystem.Handle
380379
@@ -393,6 +392,9 @@ library
393392 , Streamly.Internal.Data.Time.Clock
394393 , Streamly.Internal.Data.SVar
395394
395+ -- Memory storage
396+ , Streamly.Internal.Foreign.Malloc
397+
396398 -- Mutable data
397399 , Streamly.Internal.Data.IORef.Prim
398400