stacker
Safe HaskellNone
LanguageHaskell2010

Config

Synopsis

Documentation

loadConfig :: IO AppConfig Source #

Load configuration from the config file

saveConfig :: AppConfig -> IO () Source #

Save configuration to the config file

getRepoPath :: IO FilePath Source #

Get the repository path, either from config or default

Orphan instances

FromJSON AppConfig Source # 
Instance details

Methods

parseJSON :: Value -> Parser AppConfig

parseJSONList :: Value -> Parser [AppConfig]

omittedField :: Maybe AppConfig

ToJSON AppConfig Source # 
Instance details

Methods

toJSON :: AppConfig -> Value

toEncoding :: AppConfig -> Encoding

toJSONList :: [AppConfig] -> Value

toEncodingList :: [AppConfig] -> Encoding

omitField :: AppConfig -> Bool