@@ -1,7 +1,7 @@
11#include "inline.hs"
22
33-- |
4−-- Module : Streamly.FileSystem.FDIO
4+-- Module : Streamly.Internal.FileSystem.FDIO
55-- Copyright : (c) 2019 Composewell Technologies
66-- Copyright : (c) 1994-2008 The University of Glasgow
77--
@@ -13,7 +13,7 @@
1313-- Low level IO routines interfacing the operating system.
1414--
1515
16−module Streamly.FileSystem.FDIO
16+module Streamly.Internal.FileSystem.FDIO
1717 ( write
1818 , writeAll
1919 , IOVec (..)
@@ -31,7 +31,7 @@ import Foreign.C.Error (throwErrnoIfMinus1RetryMayBlock)
3131import Foreign.C.Types (CBool(..))
3232#endif
3333import System.Posix.Internals (c_write, c_safe_write)
34−import Streamly.FileSystem.IOVec (c_writev, c_safe_writev)
34+import Streamly.Internal.FileSystem.IOVec (c_writev, c_safe_writev)
3535#endif
3636
3737import Foreign.C.Types (CSize(..), CInt(..))
@@ -40,7 +40,7 @@ import Foreign.Ptr (plusPtr, Ptr)
4040
4141import GHC.IO.FD (FD(..))
4242
43−import Streamly.FileSystem.IOVec (IOVec(..))
43+import Streamly.Internal.FileSystem.IOVec (IOVec(..))
4444
4545-------------------------------------------------------------------------------
4646-- IO Routines
@@ -181,7 +181,7 @@ writeNonBlocking loc !fd !buf !off !len
181181-- suspend the Haskell thread until write can proceed. Returns the actual
182182-- amount of data written.
183183write :: FD -> Ptr Word8 -> Int -> CSize -> IO CInt
184−write = writeNonBlocking "Streamly.FileSystem.FDIO"
184+write = writeNonBlocking "Streamly.Internal.FileSystem.FDIO"
185185
186186-- XXX sendAll for sockets has a similar code, we can deduplicate the two.
187187-- XXX we need to check the errno to determine if the loop should continue. For
@@ -205,7 +205,7 @@ writeAll fd ptr bytes = do
205205-- write will not block the OS thread, it may suspend the Haskell thread until
206206-- write can proceed. Returns the actual amount of data written.
207207writev :: FD -> Ptr IOVec -> Int -> IO CInt
208−writev = writevNonBlocking "Streamly.FileSystem.FDIO"
208+writev = writevNonBlocking "Streamly.Internal.FileSystem.FDIO"
209209
210210-- XXX incomplete
211211-- | Keep writing an iovec in a loop until all the iovec entries are written.