HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulefs-api-0.4.0.0Haskell2010

System.FS.IO.Handle

This module is mainly meant to be used for the IO implementation of HasFS.

  • 1 type
  • 4 values
  • Packagefs-api-0.4.0.0
  • Exports5
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceHandle.hs
datadata HandleOS osHandle
#

File handlers for the IO instance for HasFS. This is parametric on the os.

The FilePath is used to improve error messages. The MVar is used to implement close. osHandle is Fd for unix and HANDLE for Windows.

Constructors

Instances2Eq, Show
  • Eq (HandleOS a)Defined in fs-api-0.4.0.0 · System.FS.IO.Handle
  • Show (HandleOS a)Defined in fs-api-0.4.0.0 · System.FS.IO.Handle
valuewithOpenHandle :: String -> HandleOS osHandle -> (osHandle -> IO a) -> IO a
#

This is meant to be used for the implementation of individual file system commands. Using it for larger scopes woud not be correct, since we would not notice if the handle is closed.