| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Unison.Share.SyncV2
Synopsis
- syncFromFile :: Bool -> FilePath -> Cli (Either (SyncError PullError) (CausalHash, CausalHashId))
- syncToFile :: Codebase IO v a -> CausalHash -> Maybe BranchRef -> FilePath -> IO (Either SyncErr ())
- syncFromCodebase :: Bool -> Connection -> Codebase IO v a -> CausalHash -> IO (Either (SyncError PullError) (CausalHash, CausalHashId))
- syncFromCodeserver :: Bool -> BaseUrl -> BranchRef -> HashJWT -> Cli (Either (SyncError PullError) (CausalHash, CausalHashId))
Documentation
Arguments
| :: Bool | Whether to validate entities as they're imported. |
| -> FilePath | Location of the sync-file |
| -> Cli (Either (SyncError PullError) (CausalHash, CausalHashId)) |
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) (CausalHash, CausalHashId)) |
Arguments
| :: Bool | |
| -> BaseUrl | The Unison Share URL. |
| -> BranchRef | The branch to download from. |
| -> HashJWT | The hash to download. |
| -> Cli (Either (SyncError PullError) (CausalHash, CausalHashId)) |