| Safe Haskell | Safe-Inferred |
|---|---|
| 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. Monad m => Branch m -> m BranchHash
- hashBranchV3 :: forall m. 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
| Exception HashingFailure Source # | |
Defined in U.Codebase.Sqlite.HashHandle Methods toException :: HashingFailure -> SomeException # | |
| Show HashingFailure Source # | |
Defined in U.Codebase.Sqlite.HashHandle Methods showsPrec :: Int -> HashingFailure -> ShowS # show :: HashingFailure -> String # showList :: [HashingFailure] -> ShowS # | |
| Eq HashingFailure Source # | |
Defined in U.Codebase.Sqlite.HashHandle Methods (==) :: HashingFailure -> HashingFailure -> Bool # (/=) :: HashingFailure -> HashingFailure -> Bool # | |
| Ord HashingFailure Source # | |
Defined in U.Codebase.Sqlite.HashHandle Methods compare :: HashingFailure -> HashingFailure -> Ordering # (<) :: HashingFailure -> HashingFailure -> Bool # (<=) :: HashingFailure -> HashingFailure -> Bool # (>) :: HashingFailure -> HashingFailure -> Bool # (>=) :: HashingFailure -> HashingFailure -> Bool # max :: HashingFailure -> HashingFailure -> HashingFailure # min :: HashingFailure -> HashingFailure -> HashingFailure # | |
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.