Location of the repository
Note that we regard the local repository as immutable; we cache files just like we do for remote repositories.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulehackage-security-0.6.3.2Haskell2010
Local repository
Location of the repository
Note that we regard the local repository as immutable; we cache files just like we do for remote repositories.
DownloadedFile LocalFileDefined in hackage-security-0.6.3.2 · Hackage.Security.Client.Repository.LocalwithRepository :: LocalRepoLocation of local repository
-> CacheLocation of local cache
-> RepoLayoutRepository layout
-> IndexLayoutIndex layout
-> (LogMessage -> IO ())Logger
-> (Repository LocalFile -> IO a)Callback
-> IO aInitialize the repository (and cleanup resources afterwards)
Like a remote repository, a local repository takes a RepoLayout as argument; but where the remote repository interprets this RepoLayout relative to a URL, the local repository interprets it relative to a local directory.
It uses the same cache as the remote repository.