Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readWord8OffAddrAsWord32# :: Addr# -> Int# -> State# s -> (# State# s, Word32# #)ghc-prim GHC.PrimopWrappers No documentation available.
readWord8OffAddrAsWord64# :: Addr# -> Int# -> State# s -> (# State# s, Word64# #)ghc-prim GHC.PrimopWrappers No documentation available.
readWordArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, Word# #)ghc-prim GHC.PrimopWrappers No documentation available.
readWordOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, Word# #)ghc-prim GHC.PrimopWrappers No documentation available.
readDirStream :: DirStream -> IO FilePathunix System.Posix.Directory readDirStream dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp, and returns the d_name member of that structure. Note that this function returns an empty filepath if the end of the directory stream is reached. For a safer alternative use readDirStreamMaybe.
readDirStreamMaybe :: DirStream -> IO (Maybe FilePath)unix System.Posix.Directory readDirStreamMaybe dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp. It returns the d_name member of that structure wrapped in a Just d_name if an entry was read and Nothing if the end of the directory stream was reached.
readDirStream :: DirStream -> IO RawFilePathunix System.Posix.Directory.ByteString readDirStream dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp, and returns the d_name member of that structure. Note that this function returns an empty filepath if the end of the directory stream is reached. For a safer alternative use readDirStreamMaybe.
readDirStreamMaybe :: DirStream -> IO (Maybe RawFilePath)unix System.Posix.Directory.ByteString readDirStreamMaybe dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp. It returns the d_name member of that structure wrapped in a Just d_name if an entry was read and Nothing if the end of the directory stream was reached.
readDirStreamWith :: (DirEnt -> IO a) -> DirStream -> IO (Maybe a)unix System.Posix.Directory.Internals readDirStreamWith f dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp. If an entry is read, it passes the pointer to that structure to the provided function f for processing. It returns the result of that function call wrapped in a Just if an entry was read and Nothing if the end of the directory stream was reached. NOTE: The lifetime of the pointer wrapped in the DirEnt is limited to invocation of the callback and it will be freed automatically after. Do not pass it to the outside world!
readDirStreamWithPtr :: Ptr DirEnt -> (DirEnt -> IO a) -> DirStream -> IO (Maybe a)unix System.Posix.Directory.Internals A version of readDirStreamWith that takes a pre-allocated pointer in addition to the other arguments. This pointer is used to store the pointer to the next directory entry, if there is any. This function is intended for use cases where you need to read a lot of directory entries and want to reuse the pointer for each of them. Using for example readDirStream or readDirStreamWith in this scenario would allocate a new pointer for each call of these functions. NOTE: You are responsible for releasing the pointer after you are done.