HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebase-4.20.2.0Haskell2010

GHC.IO.Handle.Internals

This module defines the basic operations on I/O "handles". All of the operations defined here are independent of the underlying device.

The API of this module is unstable and not meant to be consumed by the general public. If you absolutely must depend on it, make sure to use a tight upper bound, e.g., base < 4.X rather than base < 5, because the interface can change rapidly without much warning.

  • 1 type
  • 44 values
  • Packagebase-4.20.2.0
  • Exports45
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternals.hs
valueflushBuffer :: Handle__ -> IO ()
#

syncs the file with the buffer, including moving the file pointer backwards in the case of a read buffer. This can fail on a non-seekable read Handle.

valuehClose_impl :: Handle -> IO ()
#

This function exists temporarily to avoid an unused import warning in bytestring.