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

Modulesdl2-2.5.5.0Haskell2010

SDL.Filesystem

  • 2 values
  • Packagesdl2-2.5.5.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFilesystem.hs

Filesystem Paths

2 declarations
valuegetBasePath :: MonadIO m => m Text
#

An absolute path to the application data directory.

The path is guaranteed to end with a path separator.

Throws SDLException on failure, or if the platform does not implement this functionality.

valuegetPrefPath :: MonadIO m => Text -> Text -> m Text
#

A path to a unique per user and per application directory for the given organization and application name, intended for writing preferences and other personal files.

The path is guaranteed to end with a path separator.

You should assume the path returned by this function is the only safe place to write files to.

Throws SDLException on failure.