HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehackage-security-0.6.3.2Haskell2010

Hackage.Security.Client.Repository.Local

Local repository

  • 2 types
  • 1 value
typetype LocalRepo = Path Absolute
#

Location of the repository

Note that we regard the local repository as immutable; we cache files just like we do for remote repositories.

valuewithRepository
  1. :: LocalRepo

    Location of local repository

  2. -> Cache

    Location of local cache

  3. -> RepoLayout

    Repository layout

  4. -> IndexLayout

    Index layout

  5. -> (LogMessage -> IO ())

    Logger

  6. -> (Repository LocalFile -> IO a)

    Callback

  7. -> IO a
#

Initialize 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.