Copyright | (c) 2024 Illia Shkroba |
---|---|
License | BSD3 |
Maintainer | Illia Shkroba <is@pjwstk.edu.pl> |
Stability | unstable |
Portability | non-portable (Non-Unix systems are not supported) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Types and functions for managing PFile's environment.
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
Env
options.
Since: 0.1.0.0
PFile's environment that effects its behavior.
Since: 0.1.0.0
Env | |
|