unison-codebase-sync-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

U.Codebase.Sync

Synopsis

Documentation

data TrySyncResult entity Source #

Constructors

Missing [entity] 
Done 
PreviouslyDone 
NonFatalError 

Instances

Instances details
Show entity => Show (TrySyncResult entity) Source # 
Instance details

Defined in U.Codebase.Sync

Methods

showsPrec :: Int -> TrySyncResult entity -> ShowS #

show :: TrySyncResult entity -> String #

showList :: [TrySyncResult entity] -> ShowS #

data Sync m entity Source #

Constructors

Sync 

Fields

transformSync :: (forall a. m a -> n a) -> Sync m h -> Sync n h Source #

data Progress m h Source #

Constructors

Progress 

Fields

transformProgress :: (forall a. m a -> n a) -> Progress m h -> Progress n h Source #

sync :: forall m h. (Monad m, Show h) => Sync m h -> Progress m h -> [h] -> m () Source #

Calls allDone at the end

sync' :: forall m h. (Monad m, Show h) => Sync m h -> Progress m h -> [h] -> m () Source #

Doesn't call allDone at the end, in case you plan to call sync more than once.