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.Unix

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

  • 1 type
  • 12 values
  • Packagefs-api-0.4.0.0
  • Exports13
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceUnix.hs
valueclose :: FHandle -> IO ()
#

Close handle

This is a no-op when the handle is already closed.

valuegetSize :: FHandle -> IO Word64
#

File size of the given file pointer

NOTE: This is not thread safe (changes made to the file in other threads may affect this thread).

valueseek :: FHandle -> SeekMode -> Int64 -> IO ()
#

Seek within the file.

The offset may be negative.

We don't return the new offset since the behaviour of lseek is rather odd (e.g., the file pointer may not actually be moved until a subsequent write)