unison-share-api-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Sync.Types

Synopsis

Misc. types

newtype Base64Bytes Source #

A newtype for JSON encoding binary data.

Constructors

Base64Bytes ByteString 

newtype RepoInfo Source #

Constructors

RepoInfo 

Fields

Instances

Instances details
FromJSON RepoInfo Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON RepoInfo Source # 
Instance details

Defined in Unison.Sync.Types

Show RepoInfo Source # 
Instance details

Defined in Unison.Sync.Types

Eq RepoInfo Source # 
Instance details

Defined in Unison.Sync.Types

Ord RepoInfo Source # 
Instance details

Defined in Unison.Sync.Types

data Path Source #

Constructors

Path 

Instances

Instances details
FromJSON Path Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON Path Source # 
Instance details

Defined in Unison.Sync.Types

Show Path Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: Path -> Path -> Bool #

(/=) :: Path -> Path -> Bool #

Ord Path Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: Path -> Path -> Ordering #

(<) :: Path -> Path -> Bool #

(<=) :: Path -> Path -> Bool #

(>) :: Path -> Path -> Bool #

(>=) :: Path -> Path -> Bool #

max :: Path -> Path -> Path #

min :: Path -> Path -> Path #

pathRepoInfo :: Path -> RepoInfo Source #

Convert a path like arya.public.mystuff to a "repo info" by treating the first segment as a user handle.

Entity types

data Entity text noSyncHash hash Source #

Constructors

TC (TermComponent text hash) 
DC (DeclComponent text hash) 
P (Patch text noSyncHash hash) 
PD (PatchDiff text noSyncHash hash) 
N (Namespace text hash) 
ND (NamespaceDiff text hash) 
C (Causal hash) 

Instances

Instances details
(FromJSON text, FromJSON noSyncHash, FromJSON hash, Ord hash) => FromJSON (Entity text noSyncHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (Entity text noSyncHash hash) #

parseJSONList :: Value -> Parser [Entity text noSyncHash hash] #

(ToJSON text, ToJSON noSyncHash, ToJSON hash) => ToJSON (Entity text noSyncHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: Entity text noSyncHash hash -> Value #

toEncoding :: Entity text noSyncHash hash -> Encoding #

toJSONList :: [Entity text noSyncHash hash] -> Value #

toEncodingList :: [Entity text noSyncHash hash] -> Encoding #

(Show text, Show noSyncHash, Show hash) => Show (Entity text noSyncHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> Entity text noSyncHash hash -> ShowS #

show :: Entity text noSyncHash hash -> String #

showList :: [Entity text noSyncHash hash] -> ShowS #

(Eq text, Eq noSyncHash, Eq hash) => Eq (Entity text noSyncHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Bool #

(/=) :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Bool #

(Ord text, Ord noSyncHash, Ord hash) => Ord (Entity text noSyncHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Ordering #

(<) :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Bool #

(<=) :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Bool #

(>) :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Bool #

(>=) :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Bool #

max :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Entity text noSyncHash hash #

min :: Entity text noSyncHash hash -> Entity text noSyncHash hash -> Entity text noSyncHash hash #

data TermComponent text hash Source #

Constructors

TermComponent [(LocalIds text hash, ByteString)] 

Instances

Instances details
Bifoldable TermComponent Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bifold :: Monoid m => TermComponent m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> TermComponent a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> TermComponent a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> TermComponent a b -> c #

Bifunctor TermComponent Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bimap :: (a -> b) -> (c -> d) -> TermComponent a c -> TermComponent b d #

first :: (a -> b) -> TermComponent a c -> TermComponent b c #

second :: (b -> c) -> TermComponent a b -> TermComponent a c #

Bitraversable TermComponent Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> TermComponent a b -> f (TermComponent c d) #

Functor (TermComponent text) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

fmap :: (a -> b) -> TermComponent text a -> TermComponent text b #

(<$) :: a -> TermComponent text b -> TermComponent text a #

(FromJSON text, FromJSON hash) => FromJSON (TermComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (TermComponent text hash) #

parseJSONList :: Value -> Parser [TermComponent text hash] #

(ToJSON text, ToJSON hash) => ToJSON (TermComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: TermComponent text hash -> Value #

toEncoding :: TermComponent text hash -> Encoding #

toJSONList :: [TermComponent text hash] -> Value #

toEncodingList :: [TermComponent text hash] -> Encoding #

(Show text, Show hash) => Show (TermComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> TermComponent text hash -> ShowS #

show :: TermComponent text hash -> String #

showList :: [TermComponent text hash] -> ShowS #

(Eq text, Eq hash) => Eq (TermComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: TermComponent text hash -> TermComponent text hash -> Bool #

(/=) :: TermComponent text hash -> TermComponent text hash -> Bool #

(Ord text, Ord hash) => Ord (TermComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: TermComponent text hash -> TermComponent text hash -> Ordering #

(<) :: TermComponent text hash -> TermComponent text hash -> Bool #

(<=) :: TermComponent text hash -> TermComponent text hash -> Bool #

(>) :: TermComponent text hash -> TermComponent text hash -> Bool #

(>=) :: TermComponent text hash -> TermComponent text hash -> Bool #

max :: TermComponent text hash -> TermComponent text hash -> TermComponent text hash #

min :: TermComponent text hash -> TermComponent text hash -> TermComponent text hash #

data DeclComponent text hash Source #

Constructors

DeclComponent [(LocalIds text hash, ByteString)] 

Instances

Instances details
Bifoldable DeclComponent Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bifold :: Monoid m => DeclComponent m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> DeclComponent a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> DeclComponent a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> DeclComponent a b -> c #

Bifunctor DeclComponent Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bimap :: (a -> b) -> (c -> d) -> DeclComponent a c -> DeclComponent b d #

first :: (a -> b) -> DeclComponent a c -> DeclComponent b c #

second :: (b -> c) -> DeclComponent a b -> DeclComponent a c #

Bitraversable DeclComponent Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> DeclComponent a b -> f (DeclComponent c d) #

Functor (DeclComponent text) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

fmap :: (a -> b) -> DeclComponent text a -> DeclComponent text b #

(<$) :: a -> DeclComponent text b -> DeclComponent text a #

(FromJSON text, FromJSON hash) => FromJSON (DeclComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (DeclComponent text hash) #

parseJSONList :: Value -> Parser [DeclComponent text hash] #

(ToJSON text, ToJSON hash) => ToJSON (DeclComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: DeclComponent text hash -> Value #

toEncoding :: DeclComponent text hash -> Encoding #

toJSONList :: [DeclComponent text hash] -> Value #

toEncodingList :: [DeclComponent text hash] -> Encoding #

(Show text, Show hash) => Show (DeclComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> DeclComponent text hash -> ShowS #

show :: DeclComponent text hash -> String #

showList :: [DeclComponent text hash] -> ShowS #

(Eq text, Eq hash) => Eq (DeclComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: DeclComponent text hash -> DeclComponent text hash -> Bool #

(/=) :: DeclComponent text hash -> DeclComponent text hash -> Bool #

(Ord text, Ord hash) => Ord (DeclComponent text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: DeclComponent text hash -> DeclComponent text hash -> Ordering #

(<) :: DeclComponent text hash -> DeclComponent text hash -> Bool #

(<=) :: DeclComponent text hash -> DeclComponent text hash -> Bool #

(>) :: DeclComponent text hash -> DeclComponent text hash -> Bool #

(>=) :: DeclComponent text hash -> DeclComponent text hash -> Bool #

max :: DeclComponent text hash -> DeclComponent text hash -> DeclComponent text hash #

min :: DeclComponent text hash -> DeclComponent text hash -> DeclComponent text hash #

data Patch text oldHash newHash Source #

Constructors

Patch 

Fields

Instances

Instances details
(FromJSON text, FromJSON oldHash, FromJSON newHash) => FromJSON (Patch text oldHash newHash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (Patch text oldHash newHash) #

parseJSONList :: Value -> Parser [Patch text oldHash newHash] #

(ToJSON text, ToJSON oldHash, ToJSON newHash) => ToJSON (Patch text oldHash newHash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: Patch text oldHash newHash -> Value #

toEncoding :: Patch text oldHash newHash -> Encoding #

toJSONList :: [Patch text oldHash newHash] -> Value #

toEncodingList :: [Patch text oldHash newHash] -> Encoding #

(Show text, Show oldHash, Show newHash) => Show (Patch text oldHash newHash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> Patch text oldHash newHash -> ShowS #

show :: Patch text oldHash newHash -> String #

showList :: [Patch text oldHash newHash] -> ShowS #

(Eq text, Eq oldHash, Eq newHash) => Eq (Patch text oldHash newHash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: Patch text oldHash newHash -> Patch text oldHash newHash -> Bool #

(/=) :: Patch text oldHash newHash -> Patch text oldHash newHash -> Bool #

(Ord text, Ord oldHash, Ord newHash) => Ord (Patch text oldHash newHash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: Patch text oldHash newHash -> Patch text oldHash newHash -> Ordering #

(<) :: Patch text oldHash newHash -> Patch text oldHash newHash -> Bool #

(<=) :: Patch text oldHash newHash -> Patch text oldHash newHash -> Bool #

(>) :: Patch text oldHash newHash -> Patch text oldHash newHash -> Bool #

(>=) :: Patch text oldHash newHash -> Patch text oldHash newHash -> Bool #

max :: Patch text oldHash newHash -> Patch text oldHash newHash -> Patch text oldHash newHash #

min :: Patch text oldHash newHash -> Patch text oldHash newHash -> Patch text oldHash newHash #

data PatchDiff text oldHash hash Source #

Constructors

PatchDiff 

Fields

Instances

Instances details
(FromJSON text, FromJSON oldHash, FromJSON hash) => FromJSON (PatchDiff text oldHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (PatchDiff text oldHash hash) #

parseJSONList :: Value -> Parser [PatchDiff text oldHash hash] #

(ToJSON text, ToJSON oldHash, ToJSON hash) => ToJSON (PatchDiff text oldHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: PatchDiff text oldHash hash -> Value #

toEncoding :: PatchDiff text oldHash hash -> Encoding #

toJSONList :: [PatchDiff text oldHash hash] -> Value #

toEncodingList :: [PatchDiff text oldHash hash] -> Encoding #

(Show hash, Show text, Show oldHash) => Show (PatchDiff text oldHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> PatchDiff text oldHash hash -> ShowS #

show :: PatchDiff text oldHash hash -> String #

showList :: [PatchDiff text oldHash hash] -> ShowS #

(Eq hash, Eq text, Eq oldHash) => Eq (PatchDiff text oldHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Bool #

(/=) :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Bool #

(Ord hash, Ord text, Ord oldHash) => Ord (PatchDiff text oldHash hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Ordering #

(<) :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Bool #

(<=) :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Bool #

(>) :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Bool #

(>=) :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> Bool #

max :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> PatchDiff text oldHash hash #

min :: PatchDiff text oldHash hash -> PatchDiff text oldHash hash -> PatchDiff text oldHash hash #

data Namespace text hash Source #

Constructors

Namespace 

Fields

Instances

Instances details
Bifoldable Namespace Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bifold :: Monoid m => Namespace m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Namespace a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Namespace a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Namespace a b -> c #

Bifunctor Namespace Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bimap :: (a -> b) -> (c -> d) -> Namespace a c -> Namespace b d #

first :: (a -> b) -> Namespace a c -> Namespace b c #

second :: (b -> c) -> Namespace a b -> Namespace a c #

Bitraversable Namespace Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Namespace a b -> f (Namespace c d) #

Functor (Namespace text) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

fmap :: (a -> b) -> Namespace text a -> Namespace text b #

(<$) :: a -> Namespace text b -> Namespace text a #

(FromJSON text, FromJSON hash) => FromJSON (Namespace text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (Namespace text hash) #

parseJSONList :: Value -> Parser [Namespace text hash] #

(ToJSON text, ToJSON hash) => ToJSON (Namespace text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: Namespace text hash -> Value #

toEncoding :: Namespace text hash -> Encoding #

toJSONList :: [Namespace text hash] -> Value #

toEncodingList :: [Namespace text hash] -> Encoding #

(Show text, Show hash) => Show (Namespace text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> Namespace text hash -> ShowS #

show :: Namespace text hash -> String #

showList :: [Namespace text hash] -> ShowS #

(Eq text, Eq hash) => Eq (Namespace text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: Namespace text hash -> Namespace text hash -> Bool #

(/=) :: Namespace text hash -> Namespace text hash -> Bool #

(Ord text, Ord hash) => Ord (Namespace text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: Namespace text hash -> Namespace text hash -> Ordering #

(<) :: Namespace text hash -> Namespace text hash -> Bool #

(<=) :: Namespace text hash -> Namespace text hash -> Bool #

(>) :: Namespace text hash -> Namespace text hash -> Bool #

(>=) :: Namespace text hash -> Namespace text hash -> Bool #

max :: Namespace text hash -> Namespace text hash -> Namespace text hash #

min :: Namespace text hash -> Namespace text hash -> Namespace text hash #

data NamespaceDiff text hash Source #

Constructors

NamespaceDiff 

Fields

Instances

Instances details
(FromJSON text, FromJSON hash) => FromJSON (NamespaceDiff text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (NamespaceDiff text hash) #

parseJSONList :: Value -> Parser [NamespaceDiff text hash] #

(ToJSON text, ToJSON hash) => ToJSON (NamespaceDiff text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: NamespaceDiff text hash -> Value #

toEncoding :: NamespaceDiff text hash -> Encoding #

toJSONList :: [NamespaceDiff text hash] -> Value #

toEncodingList :: [NamespaceDiff text hash] -> Encoding #

(Show hash, Show text) => Show (NamespaceDiff text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> NamespaceDiff text hash -> ShowS #

show :: NamespaceDiff text hash -> String #

showList :: [NamespaceDiff text hash] -> ShowS #

(Eq hash, Eq text) => Eq (NamespaceDiff text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: NamespaceDiff text hash -> NamespaceDiff text hash -> Bool #

(/=) :: NamespaceDiff text hash -> NamespaceDiff text hash -> Bool #

(Ord hash, Ord text) => Ord (NamespaceDiff text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: NamespaceDiff text hash -> NamespaceDiff text hash -> Ordering #

(<) :: NamespaceDiff text hash -> NamespaceDiff text hash -> Bool #

(<=) :: NamespaceDiff text hash -> NamespaceDiff text hash -> Bool #

(>) :: NamespaceDiff text hash -> NamespaceDiff text hash -> Bool #

(>=) :: NamespaceDiff text hash -> NamespaceDiff text hash -> Bool #

max :: NamespaceDiff text hash -> NamespaceDiff text hash -> NamespaceDiff text hash #

min :: NamespaceDiff text hash -> NamespaceDiff text hash -> NamespaceDiff text hash #

data Causal hash Source #

Constructors

Causal 

Fields

Instances

Instances details
(FromJSON hash, Ord hash) => FromJSON (Causal hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (Causal hash) #

parseJSONList :: Value -> Parser [Causal hash] #

ToJSON hash => ToJSON (Causal hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: Causal hash -> Value #

toEncoding :: Causal hash -> Encoding #

toJSONList :: [Causal hash] -> Value #

toEncodingList :: [Causal hash] -> Encoding #

Show hash => Show (Causal hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> Causal hash -> ShowS #

show :: Causal hash -> String #

showList :: [Causal hash] -> ShowS #

Eq hash => Eq (Causal hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: Causal hash -> Causal hash -> Bool #

(/=) :: Causal hash -> Causal hash -> Bool #

Ord hash => Ord (Causal hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: Causal hash -> Causal hash -> Ordering #

(<) :: Causal hash -> Causal hash -> Bool #

(<=) :: Causal hash -> Causal hash -> Bool #

(>) :: Causal hash -> Causal hash -> Bool #

(>=) :: Causal hash -> Causal hash -> Bool #

max :: Causal hash -> Causal hash -> Causal hash #

min :: Causal hash -> Causal hash -> Causal hash #

data LocalIds text hash Source #

Constructors

LocalIds 

Fields

Instances

Instances details
Bifoldable LocalIds Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bifold :: Monoid m => LocalIds m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> LocalIds a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> LocalIds a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> LocalIds a b -> c #

Bifunctor LocalIds Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bimap :: (a -> b) -> (c -> d) -> LocalIds a c -> LocalIds b d #

first :: (a -> b) -> LocalIds a c -> LocalIds b c #

second :: (b -> c) -> LocalIds a b -> LocalIds a c #

Bitraversable LocalIds Source # 
Instance details

Defined in Unison.Sync.Types

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> LocalIds a b -> f (LocalIds c d) #

Functor (LocalIds text) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

fmap :: (a -> b) -> LocalIds text a -> LocalIds text b #

(<$) :: a -> LocalIds text b -> LocalIds text a #

(FromJSON text, FromJSON hash) => FromJSON (LocalIds text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

parseJSON :: Value -> Parser (LocalIds text hash) #

parseJSONList :: Value -> Parser [LocalIds text hash] #

(ToJSON text, ToJSON hash) => ToJSON (LocalIds text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

toJSON :: LocalIds text hash -> Value #

toEncoding :: LocalIds text hash -> Encoding #

toJSONList :: [LocalIds text hash] -> Value #

toEncodingList :: [LocalIds text hash] -> Encoding #

(Show text, Show hash) => Show (LocalIds text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

showsPrec :: Int -> LocalIds text hash -> ShowS #

show :: LocalIds text hash -> String #

showList :: [LocalIds text hash] -> ShowS #

(Eq text, Eq hash) => Eq (LocalIds text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

(==) :: LocalIds text hash -> LocalIds text hash -> Bool #

(/=) :: LocalIds text hash -> LocalIds text hash -> Bool #

(Ord text, Ord hash) => Ord (LocalIds text hash) Source # 
Instance details

Defined in Unison.Sync.Types

Methods

compare :: LocalIds text hash -> LocalIds text hash -> Ordering #

(<) :: LocalIds text hash -> LocalIds text hash -> Bool #

(<=) :: LocalIds text hash -> LocalIds text hash -> Bool #

(>) :: LocalIds text hash -> LocalIds text hash -> Bool #

(>=) :: LocalIds text hash -> LocalIds text hash -> Bool #

max :: LocalIds text hash -> LocalIds text hash -> LocalIds text hash #

min :: LocalIds text hash -> LocalIds text hash -> LocalIds text hash #

entityDependencies :: Ord hash => Entity text noSyncHash hash -> Set hash Source #

Get the direct dependencies of an entity (which are actually sync'd).

FIXME use generic-lens here? (typed @hash)

Entity Traversals

entityHashes_ :: (Applicative m, Ord hash') => (hash -> m hash') -> Entity text noSyncHash hash -> m (Entity text noSyncHash hash') Source #

patchOldHashes_ :: Applicative m => (oldHash -> m oldHash') -> Patch text oldHash newHash -> m (Patch text oldHash' newHash) Source #

patchNewHashes_ :: Applicative m => (newHash -> m newHash') -> Patch text oldHash newHash -> m (Patch text oldHash newHash') Source #

patchDiffHashes_ :: Applicative m => (hash -> m hash') -> PatchDiff text noSyncHash hash -> m (PatchDiff text noSyncHash hash') Source #

namespaceDiffHashes_ :: Applicative m => (hash -> m hash') -> NamespaceDiff text hash -> m (NamespaceDiff text hash') Source #

causalHashes_ :: (Applicative m, Ord hash') => (hash -> m hash') -> Causal hash -> m (Causal hash') Source #

Request/response types

Get causal hash by path

newtype GetCausalHashByPathRequest Source #

Constructors

GetCausalHashByPathRequest 

Fields

Instances

Instances details
FromJSON GetCausalHashByPathRequest Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON GetCausalHashByPathRequest Source # 
Instance details

Defined in Unison.Sync.Types

Show GetCausalHashByPathRequest Source # 
Instance details

Defined in Unison.Sync.Types

Eq GetCausalHashByPathRequest Source # 
Instance details

Defined in Unison.Sync.Types

Ord GetCausalHashByPathRequest Source # 
Instance details

Defined in Unison.Sync.Types

data GetCausalHashByPathResponse Source #

Instances

Instances details
FromJSON GetCausalHashByPathResponse Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON GetCausalHashByPathResponse Source # 
Instance details

Defined in Unison.Sync.Types

Show GetCausalHashByPathResponse Source # 
Instance details

Defined in Unison.Sync.Types

Eq GetCausalHashByPathResponse Source # 
Instance details

Defined in Unison.Sync.Types

Ord GetCausalHashByPathResponse Source # 
Instance details

Defined in Unison.Sync.Types

Download entities

data DownloadEntitiesRequest Source #

Instances

Instances details
FromJSON DownloadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON DownloadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Show DownloadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Eq DownloadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Ord DownloadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Upload entities

data UploadEntitiesRequest Source #

Instances

Instances details
FromJSON UploadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON UploadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Show UploadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Eq UploadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

Ord UploadEntitiesRequest Source # 
Instance details

Defined in Unison.Sync.Types

data UploadEntitiesResponse Source #

Instances

Instances details
FromJSON UploadEntitiesResponse Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON UploadEntitiesResponse Source # 
Instance details

Defined in Unison.Sync.Types

Show UploadEntitiesResponse Source # 
Instance details

Defined in Unison.Sync.Types

Eq UploadEntitiesResponse Source # 
Instance details

Defined in Unison.Sync.Types

Ord UploadEntitiesResponse Source # 
Instance details

Defined in Unison.Sync.Types

Common/shared error types

data HashMismatchForEntity Source #

Instances

Instances details
FromJSON HashMismatchForEntity Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON HashMismatchForEntity Source # 
Instance details

Defined in Unison.Sync.Types

Show HashMismatchForEntity Source # 
Instance details

Defined in Unison.Sync.Types

Eq HashMismatchForEntity Source # 
Instance details

Defined in Unison.Sync.Types

Ord HashMismatchForEntity Source # 
Instance details

Defined in Unison.Sync.Types

data NeedDependencies hash Source #

Constructors

NeedDependencies 

Fields

Instances

Instances details
(FromJSON hash, Ord hash) => FromJSON (NeedDependencies hash) Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON hash => ToJSON (NeedDependencies hash) Source # 
Instance details

Defined in Unison.Sync.Types

Show hash => Show (NeedDependencies hash) Source # 
Instance details

Defined in Unison.Sync.Types

Eq hash => Eq (NeedDependencies hash) Source # 
Instance details

Defined in Unison.Sync.Types

Ord hash => Ord (NeedDependencies hash) Source # 
Instance details

Defined in Unison.Sync.Types

data EntityValidationError Source #

The ways in which validating an entity may fail.

Instances

Instances details
FromJSON EntityValidationError Source # 
Instance details

Defined in Unison.Sync.Types

ToJSON EntityValidationError Source # 
Instance details

Defined in Unison.Sync.Types

Exception EntityValidationError Source # 
Instance details

Defined in Unison.Sync.Types

Show EntityValidationError Source # 
Instance details

Defined in Unison.Sync.Types

Eq EntityValidationError Source # 
Instance details

Defined in Unison.Sync.Types

Ord EntityValidationError Source # 
Instance details

Defined in Unison.Sync.Types