| Copyright | Matthew Harm Bekkema 2016 |
|---|---|
| License | GPL-2 |
| Maintainer | mbekkema97@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Passman.Core.Config
Contents
Description
- data Config = Config {}
- data ConfigError
- loadConfig :: IO (Either ConfigError Config)
- saveConfig :: Config -> IO ()
Data Structures
The persistent configuration of the password manager
Constructors
| Config | |
Fields
| |
data ConfigError Source
Possible config file errors
Constructors
| ConfigFileNotFound | There is currently no configuration file. |
| InvalidConfig FilePath | A configuration file was found but its contents are invalid. The
|
Instances
File IO
loadConfig :: IO (Either ConfigError Config) Source
Loads a config from file.
saveConfig :: Config -> IO () Source
Saves the specified config to file, overwriting an existing config file.