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

An abstract view over the filesystem.

  • 3 types
  • 6 values
  • Packagefs-api-0.4.0.0
  • Exports9
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceAPI.hs

Record that abstracts over the filesystem

1 declaration
datadata HasFS (m :: Type -> Type) h
#

Abstract interface for performing file I/O

User-supplied buffers

For functions that require user-supplied buffers (i.e.,

MutableByteArray

), it is the user's responsiblity to provide buffers that are large enough. Behaviour is undefined if the I/O operations access the buffer outside it's allocated range.

Constructors

Instances1NFData
  • NFData (HasFS m h)Defined in fs-api-0.4.0.0 · System.FS.API

Types

0 declarations

Opening and closing files

2 declarations

SomeHasFS

1 declaration

File I/O with user-supplied buffers

5 declarations
newtypenewtype BufferOffset
#

Absolute offset into a buffer (i.e., MutableByteArray).

Can be negative, because buffer offsets can be added together to change offset positions. This is similar to plusPtr for Ptr types. However, note that reading or writing from a buffer at a negative offset leads to undefined behaviour.

Instances6Bounded, Enum, Eq, Num, Ord, Show