module Unison.Codebase.SqliteCodebase.SyncEphemeral where import U.Codebase.HashTags (CausalHash) import U.Codebase.Sqlite.DbId (SchemaVersion) import Unison.Hash (Hash) import Unison.Prelude data Dependencies = Dependencies { Dependencies -> Set Hash definitions :: Set Hash, Dependencies -> Set Hash branches :: Set Hash } data Error = SrcWrongSchema SchemaVersion | DestWrongSchema SchemaVersion | DisappearingBranch CausalHash deriving stock (Int -> Error -> ShowS [Error] -> ShowS Error -> String (Int -> Error -> ShowS) -> (Error -> String) -> ([Error] -> ShowS) -> Show Error forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a $cshowsPrec :: Int -> Error -> ShowS showsPrec :: Int -> Error -> ShowS $cshow :: Error -> String show :: Error -> String $cshowList :: [Error] -> ShowS showList :: [Error] -> ShowS Show) deriving anyclass (Show Error Typeable Error (Typeable Error, Show Error) => (Error -> SomeException) -> (SomeException -> Maybe Error) -> (Error -> String) -> Exception Error SomeException -> Maybe Error Error -> String Error -> SomeException forall e. (Typeable e, Show e) => (e -> SomeException) -> (SomeException -> Maybe e) -> (e -> String) -> Exception e $ctoException :: Error -> SomeException toException :: Error -> SomeException $cfromException :: SomeException -> Maybe Error fromException :: SomeException -> Maybe Error $cdisplayException :: Error -> String displayException :: Error -> String Exception)