pfile-0.1.0.1: CLI program for profiles management.
Copyright(c) 2024 Illia Shkroba
LicenseBSD3
MaintainerIllia Shkroba <is@pjwstk.edu.pl>
Stabilityunstable
Portabilitynon-portable (Non-Unix systems are not supported)
Safe HaskellSafe-Inferred
LanguageHaskell2010

PFile.Env

Description

Types and functions for managing PFile's environment.

Synopsis

Documentation

resolve :: MonadIO m => Options -> m Env Source #

Deduce PFile's dataHomeDirPath in the following order:

  • Lookup in "$PFILE_DATA_HOME" environment variable if exists.
  • Use ".pfile" directory from the current working directory if exists.
  • Use "$XDG_DATA_HOME/pfile" directory.

Based on the dataHomeDirPath other fields of Env are resolved.

Since: 0.1.0.0

description :: Env -> Text Source #

Describe an Env.

Since: 0.1.0.0

newtype Options Source #

Env options.

Since: 0.1.0.0

Constructors

Options 

Fields

data Env Source #

PFile's environment that effects its behavior.

Since: 0.1.0.0

Constructors

Env 

Fields