Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Codebase m v a = Codebase {
- getTerm :: TermReferenceId -> Transaction (Maybe (Term v a))
- getTypeOfTermImpl :: TermReferenceId -> Transaction (Maybe (Type v a))
- getTypeDeclaration :: TypeReferenceId -> Transaction (Maybe (Decl v a))
- getDeclType :: TypeReference -> Transaction ConstructorType
- putTerm :: TermReferenceId -> Term v a -> Type v a -> Transaction ()
- putTermComponent :: Hash -> [(Term v a, Type v a)] -> Transaction ()
- putTypeDeclaration :: TypeReferenceId -> Decl v a -> Transaction ()
- putTypeDeclarationComponent :: Hash -> [Decl v a] -> Transaction ()
- getTermComponentWithTypes :: Hash -> Transaction (Maybe [(Term v a, Type v a)])
- getBranchForHash :: CausalHash -> m (Maybe (Branch m))
- putBranch :: Branch m -> m ()
- getWatch :: WatchKind -> TermReferenceId -> Transaction (Maybe (Term v a))
- termsOfTypeImpl :: Reference -> Transaction (Set Id)
- termsMentioningTypeImpl :: Reference -> Transaction (Set Id)
- filterTermsByReferenceIdHavingTypeImpl :: TypeReference -> Set Id -> Transaction (Set Id)
- filterTermsByReferentIdHavingTypeImpl :: TypeReference -> Set Id -> Transaction (Set Id)
- termReferentsByPrefix :: ShortHash -> Transaction (Set Id)
- withConnection :: forall x. (Connection -> m x) -> m x
- withConnectionIO :: forall x. (Connection -> IO x) -> IO x
- preloadBranch :: CausalHash -> m ()
- type CodebasePath = FilePath
- data LocalOrRemote
Documentation
Abstract interface to a user's codebase.
Codebase | |
|
type CodebasePath = FilePath Source #
A directory that contains a codebase.
data LocalOrRemote Source #
Whether a codebase is local or remote.
Instances
Show LocalOrRemote Source # | |
Defined in Unison.Codebase.Type showsPrec :: Int -> LocalOrRemote -> ShowS # show :: LocalOrRemote -> String # showList :: [LocalOrRemote] -> ShowS # | |
Eq LocalOrRemote Source # | |
Defined in Unison.Codebase.Type (==) :: LocalOrRemote -> LocalOrRemote -> Bool # (/=) :: LocalOrRemote -> LocalOrRemote -> Bool # | |
Ord LocalOrRemote Source # | |
Defined in Unison.Codebase.Type compare :: LocalOrRemote -> LocalOrRemote -> Ordering # (<) :: LocalOrRemote -> LocalOrRemote -> Bool # (<=) :: LocalOrRemote -> LocalOrRemote -> Bool # (>) :: LocalOrRemote -> LocalOrRemote -> Bool # (>=) :: LocalOrRemote -> LocalOrRemote -> Bool # max :: LocalOrRemote -> LocalOrRemote -> LocalOrRemote # min :: LocalOrRemote -> LocalOrRemote -> LocalOrRemote # |