Copyright | Matthew Harm Bekkema 2016 |
---|---|
License | GPL-2 |
Maintainer | mbekkema97@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
- data Config = Config {}
- data ConfigError
- loadConfig :: IO (Either ConfigError Config)
- saveConfig :: Config -> IO ()
Data Structures
The persistent configuration of the password manager
Config | |
|
data ConfigError Source
Possible config file errors
ConfigFileNotFound | There is currently no configuration file. |
InvalidConfig FilePath | A configuration file was found but its contents are invalid. The
|
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.