| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
U.Codebase.Sqlite.HashHandle
Synopsis
- data HashHandle = HashHandle {
- toReference :: Type Symbol -> Reference
- toReferenceMentions :: Type Symbol -> Set Reference
- toReferenceDecl :: Hash -> TypeD Symbol -> Reference
- toReferenceDeclMentions :: Hash -> TypeD Symbol -> Set Reference
- hashBranch :: forall (m :: Type -> Type). Monad m => Branch m -> m BranchHash
- hashBranchV3 :: forall (m :: Type -> Type). BranchV3 m -> BranchHash
- hashCausal :: BranchHash -> Set CausalHash -> CausalHash
- hashBranchFormatFull :: HashBranchLocalIds -> LocalBranch -> BranchHash
- hashPatchFormatFull :: HashPatchLocalIds -> LocalPatch -> PatchHash
- verifyTermFormatHash :: ComponentHash -> HashTermFormat -> Maybe HashValidationError
- verifyDeclFormatHash :: ComponentHash -> HashDeclFormat -> Maybe DeclHashingError
- data HashMismatch = HashMismatch {
- expectedHash :: Hash
- actualHash :: Hash
- data HashValidationError
- data DeclHashingError
- data HashingFailure = IncompleteElementOrderingError ComponentHash
- crashOnHashingFailure :: HasCallStack => Either HashingFailure a -> a
Documentation
data HashHandle Source #
Constructors
| HashHandle | |
Fields
| |
data HashMismatch Source #
Constructors
| HashMismatch | |
Fields
| |
data HashValidationError Source #
data DeclHashingError Source #
Constructors
| DeclHashMismatch HashMismatch | |
| DeclHashResolutionFailure |
data HashingFailure Source #
Constructors
| IncompleteElementOrderingError ComponentHash | two or more component elements can not be completely ordered with respect to one another https://github.com/unisonweb/unison/issues/2787 |
Instances
crashOnHashingFailure :: HasCallStack => Either HashingFailure a -> a Source #
We don't expect to encounter these, but if we do we should print a nice message.
In the future we will hopefully prevent this error entirely.