| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Darcs.Repository.InternalTypes
- data Repository (rt :: RepoType) (p :: * -> * -> *) wRecordedstate wUnrecordedstate wTentativestate
- data PristineType
- repoCache :: Repository rt p wR wU wT -> Cache
- modifyCache :: forall rt p wR wU wT. Repository rt p wR wU wT -> (Cache -> Cache) -> Repository rt p wR wU wT
- repoPatchType :: Repository rt p wR wU wT -> PatchType rt p
- repoFormat :: Repository rt p wR wU wT -> RepoFormat
- repoLocation :: Repository rt p wR wU wT -> String
- withRepoLocation :: Repository rt p wR wU wT -> IO a -> IO a
- repoPristineType :: Repository rt p wR wU wT -> PristineType
- coerceR :: Repository rt p wR wU wT -> Repository rt p wR' wU wT
- coerceU :: Repository rt p wR wU wT -> Repository rt p wR wU' wT
- coerceT :: Repository rt p wR wU wT -> Repository rt p wR wU wT'
- mkRepo :: String -> RepoFormat -> PristineType -> Cache -> Repository rt p wR wU wT
Documentation
data Repository (rt :: RepoType) (p :: * -> * -> *) wRecordedstate wUnrecordedstate wTentativestate Source #
A Repository is a token representing the state of a repository on disk.
It is parameterized by the patch type in the repository, and witnesses for
the recorded state of the repository (i.e. what darcs get would retrieve),
the unrecorded state (what's in the working directory now),
and the tentative state, which represents work in progress that will
eventually become the new recorded state unless something goes wrong.
Instances
| Show (Repository rt p wRecordedstate wUnrecordedstate wTentativestate) Source # | |
repoCache :: Repository rt p wR wU wT -> Cache Source #
modifyCache :: forall rt p wR wU wT. Repository rt p wR wU wT -> (Cache -> Cache) -> Repository rt p wR wU wT Source #
modifyCache repository function modifies the cache of
repository with function, remove duplicates and sort the results with compareByLocality.
repoPatchType :: Repository rt p wR wU wT -> PatchType rt p Source #
repoFormat :: Repository rt p wR wU wT -> RepoFormat Source #
repoLocation :: Repository rt p wR wU wT -> String Source #
withRepoLocation :: Repository rt p wR wU wT -> IO a -> IO a Source #
repoPristineType :: Repository rt p wR wU wT -> PristineType Source #
coerceR :: Repository rt p wR wU wT -> Repository rt p wR' wU wT Source #
coerceU :: Repository rt p wR wU wT -> Repository rt p wR wU' wT Source #
coerceT :: Repository rt p wR wU wT -> Repository rt p wR wU wT' Source #
mkRepo :: String -> RepoFormat -> PristineType -> Cache -> Repository rt p wR wU wT Source #