@hackage xdg-basedir-compliant1.1.0

XDG Basedir

XDG Basedir implementation

This is a compliant implementation of the XDG Base Directory Specification.

Compliance

  • $XDG_DATA_HOME
    • get path
    • read file
    • write file
  • $XDG_CONFIG_HOME
    • get path
    • read file
    • write file
  • $XDG_STATE_HOME
    • get path
    • read file
    • write file
  • $XDG_DATA_DIRS
    • get path list
    • read best file
    • merge files
  • $XDG_CONFIG_DIRS
    • get path list
    • read best file
    • merge files
  • $XDG_CACHE_HOME
    • get path
    • read file
    • write file
  • $XDG_RUNTIME_DIR
    • get path
    • read file
    • write file
  • treat relative paths as invalid

Build

You can build the project with:

hpack
cabal build

If you have Nix installed, shell.nix provides an environment with all the needed dependencies. It is suitable for nix-direnv.