Safe Haskell | None |
---|---|
Language | Haskell2010 |
File paths of interest to Dyre, and related values.
Synopsis
- data PathsConfig = PathsConfig {}
- outputExecutable :: FilePath -> FilePath
- getPaths :: Params c r -> IO (FilePath, FilePath, FilePath, FilePath, FilePath)
- getPathsConfig :: Params cfg a -> IO PathsConfig
- maybeModTime :: FilePath -> IO (Maybe UTCTime)
- checkFilesModified :: PathsConfig -> IO Bool
- findHaskellFiles :: FilePath -> IO [FilePath]
Documentation
data PathsConfig Source #
Data type to make it harder to confuse which path is which.
PathsConfig | |
|
outputExecutable :: FilePath -> FilePath Source #
Determine a file name for the compiler to write to, based on
the customExecutable
path.
getPaths :: Params c r -> IO (FilePath, FilePath, FilePath, FilePath, FilePath) Source #
Return a PathsConfig
, which records the current binary, the custom
binary, the config file, and the cache directory.
getPathsConfig :: Params cfg a -> IO PathsConfig Source #
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.
checkFilesModified :: PathsConfig -> IO Bool Source #