Move FileSystem.IOVec to System.IOVec/Type

This commit is contained in:
Harendra Kumar 2021-08-17 23:20:47 +05:30
parent ec99341b49
commit 86f6c4eed4
6 changed files with 7 additions and 9 deletions

View File

@ -71,7 +71,7 @@ import GHC.Types (SPEC(..))
import Prelude hiding (null, last, (!!), read, concat, unlines)
#if !defined(mingw32_HOST_OS)
import Streamly.Internal.FileSystem.FDIO (IOVec(..))
import Streamly.Internal.System.IOVec.Type (IOVec(..))
#endif
import Streamly.Internal.BaseCompat

View File

@ -36,7 +36,7 @@ import Foreign.Storable (Storable(..))
#if !defined(mingw32_HOST_OS)
import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
import Foreign.Ptr (castPtr)
import Streamly.Internal.FileSystem.FDIO (IOVec(..))
import Streamly.Internal.System.IOVec.Type (IOVec(..))
import Streamly.Internal.Data.Array.Foreign.Mut.Type (length)
import Streamly.Internal.Data.SVar (adaptState)
#endif

View File

@ -142,6 +142,7 @@ import Streamly.Internal.Data.Array.Stream.Foreign (groupIOVecsOf)
import Streamly.Internal.Data.Stream.StreamD (toStreamD)
import Streamly.Internal.Data.Stream.StreamD.Type (fromStreamD)
import qualified Streamly.Internal.FileSystem.FDIO as RawIO hiding (write)
import qualified Streamly.Internal.System.IOVec.Type as RawIO
#endif
-- import Streamly.Data.Fold (Fold)
-- import Streamly.String (encodeUtf8, decodeUtf8, foldLines)

View File

@ -16,7 +16,6 @@
module Streamly.Internal.FileSystem.FDIO
( write
, writeAll
, IOVec (..)
, writev
, writevAll
)
@ -31,7 +30,7 @@ import Foreign.C.Error (throwErrnoIfMinus1RetryMayBlock)
import Foreign.C.Types (CBool(..))
#endif
import System.Posix.Internals (c_write, c_safe_write)
import Streamly.Internal.FileSystem.IOVec (c_writev, c_safe_writev)
import Streamly.Internal.System.IOVec.Type (IOVec, c_writev, c_safe_writev)
#endif
import Foreign.C.Types (CSize(..), CInt(..))
@ -40,8 +39,6 @@ import Foreign.Ptr (plusPtr, Ptr)
import GHC.IO.FD (FD(..))
import Streamly.Internal.FileSystem.IOVec (IOVec(..))
-------------------------------------------------------------------------------
-- IO Routines
-------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#include "MachDeps.h"
-- |
-- Module : Streamly.Internal.FileSystem.IOVec
-- Module : Streamly.Internal.System.IOVec.Type
-- Copyright : (c) 2019 Composewell Technologies
--
-- License : BSD3
@ -12,7 +12,7 @@
-- Low level IO routines interfacing the operating system.
--
module Streamly.Internal.FileSystem.IOVec
module Streamly.Internal.System.IOVec.Type
( IOVec(..)
, c_writev
, c_safe_writev

View File

@ -367,6 +367,7 @@ library
, Streamly.Internal.Data.Time.Clock.Type
, Streamly.Internal.Data.Time.Clock
, Streamly.Internal.System.IO
, Streamly.Internal.System.IOVec.Type
-- streamly-core-stream
, Streamly.Internal.Data.SVar
@ -471,7 +472,6 @@ library
, Streamly.Internal.FileSystem.Handle
, Streamly.Internal.FileSystem.Dir
, Streamly.Internal.FileSystem.File
, Streamly.Internal.FileSystem.IOVec
, Streamly.Internal.FileSystem.FDIO
, Streamly.Internal.FileSystem.FD