Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GlobalFlags = GlobalFlags {
- globalVersion :: Flag Bool
- globalNumericVersion :: Flag Bool
- globalConfigFile :: Flag FilePath
- globalConstraintsFile :: Flag FilePath
- globalRemoteRepos :: NubList RemoteRepo
- globalCacheDir :: Flag FilePath
- globalLocalNoIndexRepos :: NubList LocalRepo
- globalActiveRepos :: Flag ActiveRepos
- globalLogsDir :: Flag FilePath
- globalIgnoreExpiry :: Flag Bool
- globalHttpTransport :: Flag String
- globalNix :: Flag Bool
- globalStoreDir :: Flag FilePath
- globalProgPathExtra :: NubList FilePath
- defaultGlobalFlags :: GlobalFlags
- data RepoContext = RepoContext {
- repoContextRepos :: [Repo]
- repoContextGetTransport :: IO HttpTransport
- repoContextWithSecureRepo :: forall a. Repo -> (forall down. Repository down -> IO a) -> IO a
- repoContextIgnoreExpiry :: Bool
- withRepoContext :: Verbosity -> GlobalFlags -> (RepoContext -> IO a) -> IO a
- withRepoContext' :: Verbosity -> [RemoteRepo] -> [LocalRepo] -> FilePath -> Maybe String -> Maybe Bool -> [FilePath] -> (RepoContext -> IO a) -> IO a
Documentation
data GlobalFlags Source #
Flags that apply at the top level, not to any sub-command.
GlobalFlags | |
|
Instances
data RepoContext Source #
Access to repositories
RepoContext | |
|
withRepoContext :: Verbosity -> GlobalFlags -> (RepoContext -> IO a) -> IO a Source #
withRepoContext' :: Verbosity -> [RemoteRepo] -> [LocalRepo] -> FilePath -> Maybe String -> Maybe Bool -> [FilePath] -> (RepoContext -> IO a) -> IO a Source #