HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleunix-bytestring-0.4.0.4Haskell2010

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