| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Singular.Registry.Evidence
Description
A session identity records one acquisition; it does not assert a snapshot. Facts may carry an abstract witness. Demo 1 has no inhabitant of NoWitness or Endorsement and configures only the honest unverified verdict.
Synopsis
- newtype SessionId = SessionId Text
- data SessionBinding
- data Evidenced w a = Evidenced {}
- data NoWitness
- data Endorsement
- data Reason = NoVerifierConfigured
- data Verdict a
- = Verified a Endorsement
- | Unverified a Reason
- newtype Verifier w (m :: Type -> Type) = Verifier {
- verifyFact :: forall a. Evidenced w a -> m (Verdict a)
- unverifiedVerifier :: forall (m :: Type -> Type). Applicative m => Verifier NoWitness m
Documentation
Identifies one acquisition, including all facts consumed within it.
Constructors
| SessionId Text |
Instances
| Show SessionId Source # | |
Defined in Singular.Registry.Evidence | |
| Eq SessionId Source # | |
Defined in Singular.Registry.Evidence | |
| Ord SessionId Source # | |
Defined in Singular.Registry.Evidence | |
data SessionBinding Source #
Snapshot binding, independent of the latest observed tip.
Instances
| Show SessionBinding Source # | |
Defined in Singular.Registry.Evidence Methods showsPrec :: Int -> SessionBinding -> ShowS Source # show :: SessionBinding -> String Source # showList :: [SessionBinding] -> ShowS Source # | |
| Eq SessionBinding Source # | |
Defined in Singular.Registry.Evidence Methods (==) :: SessionBinding -> SessionBinding -> Bool Source # (/=) :: SessionBinding -> SessionBinding -> Bool Source # | |
A raw fact and its optional abstract witness.
data Endorsement Source #
No endorsement implementation or concrete decoder ships in Demo 1.
Why a fact remains unverified.
Constructors
| NoVerifierConfigured |
Instances
| Show Reason Source # | |
Defined in Singular.Registry.Evidence | |
| Eq Reason Source # | |
Defined in Singular.Registry.Evidence | |
A verdict retains the exact fact it describes.
Constructors
| Verified a Endorsement | |
| Unverified a Reason |
newtype Verifier w (m :: Type -> Type) Source #
An abstract, effect-polymorphic fact verifier.
Constructors
| Verifier | |
Fields
| |
unverifiedVerifier :: forall (m :: Type -> Type). Applicative m => Verifier NoWitness m Source #
The sole configured Demo 1 policy; never upgrades a raw fact.