| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
U.Codebase.Sync
Synopsis
- debug :: Bool
- data TrySyncResult entity
- = Missing [entity]
- | Done
- | PreviouslyDone
- | NonFatalError
- data Sync (m :: Type -> Type) entity = Sync {
- trySync :: entity -> m (TrySyncResult entity)
- transformSync :: (forall a. m a -> n a) -> Sync m h -> Sync n h
- data Progress (m :: Type -> Type) h = Progress {}
- transformProgress :: (forall a. m a -> n a) -> Progress m h -> Progress n h
- sync :: (Monad m, Show h) => Sync m h -> Progress m h -> [h] -> m ()
- sync' :: (Monad m, Show h) => Sync m h -> Progress m h -> [h] -> m ()
Documentation
data TrySyncResult entity Source #
Constructors
| Missing [entity] | |
| Done | |
| PreviouslyDone | |
| NonFatalError |
Instances
| Show entity => Show (TrySyncResult entity) Source # | |
Defined in U.Codebase.Sync Methods showsPrec :: Int -> TrySyncResult entity -> ShowS # show :: TrySyncResult entity -> String # showList :: [TrySyncResult entity] -> ShowS # | |
data Sync (m :: Type -> Type) entity Source #
Constructors
| Sync | |
Fields
| |
transformSync :: (forall a. m a -> n a) -> Sync m h -> Sync n h Source #
transformProgress :: (forall a. m a -> n a) -> Progress m h -> Progress n h Source #