dyre-0.8.12: Dynamic reconfiguration in Haskell
Safe HaskellNone
LanguageHaskell98

Config.Dyre.Paths

Synopsis

Documentation

getPaths :: Params c -> IO (FilePath, FilePath, FilePath, FilePath, FilePath) Source #

Return the paths to, respectively, the current binary, the custom binary, the config file, and the cache directory.

maybeModTime :: FilePath -> IO (Maybe UTCTime) Source #

Check if a file exists. If it exists, return Just the modification time. If it doesn't exist, return Nothing.