Copyright | (c) Fuzz Leonard 2025 |
---|---|
License | MIT |
Maintainer | cyborg@bionicfuzz.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Clod.Config
Contents
Description
This module provides functions for handling configuration options including environment variables and default values.
Synopsis
- configDirName :: IO String
- clodIgnoreFile :: IO String
- clodConfigDir :: FilePath -> IO FilePath
- getDataFileName :: FilePath -> IO FilePath
Configuration functions
configDirName :: IO String Source #
Get configuration directory name
Returns the configuration directory name, checking the CLOD_DIR environment variable first and falling back to ".clod" if not set.
configDir <- configDirName -- Returns ".clod" or value of CLOD_DIR
clodIgnoreFile :: IO String Source #
Get clodignore file name
Returns the clodignore file name, checking the CLODIGNORE environment variable first and falling back to ".clodignore" if not set.
ignoreFile <- clodIgnoreFile -- Returns ".clodignore" or value of CLODIGNORE