HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Modulehackage-security-0.6.4.0Haskell2010

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.