Safe Haskell | None |
---|---|
Language | Haskell2010 |
Effectful functions executing shared image respository operations. See B9.Repository
Synopsis
- repoSearch :: forall e. (CommandIO e, Member RepoCacheReader e) => FilePath -> FilePathGlob -> Eff e [(Repository, [FilePath])]
- pushToRepo :: CommandIO e => RemoteRepo -> FilePath -> FilePath -> Eff e ()
- pullFromRepo :: CommandIO e => RemoteRepo -> FilePath -> FilePath -> Eff e ()
- pullGlob :: (CommandIO e, Member RepoCacheReader e) => FilePath -> FilePathGlob -> RemoteRepo -> Eff e ()
- data Repository
- toRemoteRepository :: RemoteRepo -> Repository
- newtype FilePathGlob = FileExtension String
Documentation
repoSearch :: forall e. (CommandIO e, Member RepoCacheReader e) => FilePath -> FilePathGlob -> Eff e [(Repository, [FilePath])] Source #
Find files which are in subDir
and match glob
in the repository
cache. NOTE: This operates on the repository cache, but does not enforce a
repository cache update.
pushToRepo :: CommandIO e => RemoteRepo -> FilePath -> FilePath -> Eff e () Source #
Push a file from the cache to a remote repository
pullFromRepo :: CommandIO e => RemoteRepo -> FilePath -> FilePath -> Eff e () Source #
Pull a file from a remote repository to cache
pullGlob :: (CommandIO e, Member RepoCacheReader e) => FilePath -> FilePathGlob -> RemoteRepo -> Eff e () Source #
Push a file from the cache to a remote repository
data Repository Source #
Instances
Eq Repository Source # | |
Defined in B9.RepositoryIO (==) :: Repository -> Repository -> Bool # (/=) :: Repository -> Repository -> Bool # | |
Ord Repository Source # | |
Defined in B9.RepositoryIO compare :: Repository -> Repository -> Ordering # (<) :: Repository -> Repository -> Bool # (<=) :: Repository -> Repository -> Bool # (>) :: Repository -> Repository -> Bool # (>=) :: Repository -> Repository -> Bool # max :: Repository -> Repository -> Repository # min :: Repository -> Repository -> Repository # | |
Read Repository Source # | |
Defined in B9.RepositoryIO readsPrec :: Int -> ReadS Repository # readList :: ReadS [Repository] # readPrec :: ReadPrec Repository # readListPrec :: ReadPrec [Repository] # | |
Show Repository Source # | |
Defined in B9.RepositoryIO showsPrec :: Int -> Repository -> ShowS # show :: Repository -> String # showList :: [Repository] -> ShowS # |
toRemoteRepository :: RemoteRepo -> Repository Source #
Convert a RemoteRepo
down to a mere Repository
newtype FilePathGlob Source #
Express a pattern for file paths, used when searching repositories.