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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulesdl2-2.5.6.1Haskell2010

SDL.Filesystem

  • 2 values
  • Packagesdl2-2.5.6.1
  • 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.