Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Unison.Share.SyncV2
Synopsis
- syncFromFile :: Bool -> FilePath -> Cli (Either (SyncError PullError) CausalHash)
- syncToFile :: Codebase IO v a -> CausalHash -> Maybe BranchRef -> FilePath -> IO (Either SyncErr ())
- syncFromCodebase :: Bool -> Connection -> Codebase IO v a -> CausalHash -> IO (Either (SyncError PullError) ())
- syncFromCodeserver :: Bool -> BaseUrl -> BranchRef -> HashJWT -> (Int -> IO ()) -> Cli (Either (SyncError PullError) ())
Documentation
Arguments
:: Codebase IO v a | |
-> CausalHash | Root hash to sync |
-> Maybe BranchRef | Optional name of the branch begin synced |
-> FilePath | Location of the sync-file |
-> IO (Either SyncErr ()) |
Sync a given causal hash and its dependencies to a sync-file.
Arguments
:: Bool | |
-> Connection | The codebase to sync from. |
-> Codebase IO v a | |
-> CausalHash | The hash to sync. |
-> IO (Either (SyncError PullError) ()) |