HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleunix-bytestring-0.4.0.1Haskell2010

System.Posix.IO.ByteString.Ext.Lazy

Provides a lazy-ByteString variant of System.Posix.IO.ByteString.Ext, to avoid boilerplate code for converting between lazy-ByteString and strict [ByteString]. This module was renamed in version 0.4.0 to mirror the renaming of the strict module. See the documentation there for the reason why.

  • 4 values

I/O with file descriptors

0 declarations

Reading

valuefdRead
  1. :: Fd
  2. -> ByteCount

    How many bytes to try to read.

  3. -> IO ByteString

    The bytes read.

#

Read data from an Fd and convert it to a ByteString. Throws an exception if this is an invalid descriptor, or EOF has been reached. This is a thin wrapper around fdRead.

valuefdPread
  1. :: Fd
  2. -> ByteCount

    How many bytes to try to read.

  3. -> FileOffset

    Where to read the data from.

  4. -> IO ByteString

    The bytes read.

#

Read data from a specified position in the Fd and convert it to a ByteString, without altering the position stored in the Fd. Throws an exception if this is an invalid descriptor, or EOF has been reached. This is a thin wrapper around fdPread.

Since: 0.3.1

Writing