cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Constrained.TypeRep

Synopsis

Documentation

data Rep era t where Source #

Constructors

RationalRRep era Rational 
CoinRRep era Coin 
EpochRRep era EpochNo 
EpochIntervalRRep era EpochInterval 
(:->)Rep era a → Rep era b → Rep era (a → b) infixr 0 
MapROrd a ⇒ Rep era a → Rep era b → Rep era (Map a b) 
SetROrd a ⇒ Rep era a → Rep era (Set a) 
ListRRep era a → Rep era [a] 
AddrREra era ⇒ Rep era Addr 
CredREra era ⇒ Rep era (Credential 'Staking) 
VCredREra era ⇒ Rep era (Credential 'DRepRole) 
PoolHashREra era ⇒ Rep era (KeyHash 'StakePool) 
WitHashREra era ⇒ Rep era (KeyHash 'Witness) 
GenHashREra era ⇒ Rep era (KeyHash 'Genesis) 
GenDelegHashREra era ⇒ Rep era (KeyHash 'GenesisDelegate) 
VHashREra era ⇒ Rep era (KeyHash 'DRepRole) 
CommColdCredREra era ⇒ Rep era (Credential 'ColdCommitteeRole) 
CommHotCredREra era ⇒ Rep era (Credential 'HotCommitteeRole) 
PoolParamsREra era ⇒ Rep era PoolParams 
NewEpochStateREra era ⇒ Rep era (NewEpochState era) 
IntRRep era Int 
FloatRRep era Float 
NaturalRRep era Natural 
Word64RRep era Word64 
TxInREra era ⇒ Rep era TxIn 
TxIdREra era ⇒ Rep era TxId 
CharRRep era Char 
UnitRRep era () 
PairRRep era a → Rep era b → Rep era (a, b) 
ProtVerREra era ⇒ Proof era → Rep era ProtVer 
ValueREra era ⇒ Proof era → Rep era (ValueF era) 
UTxOREra era ⇒ Proof era → Rep era (UTxO era) 
TxOutREra era ⇒ Proof era → Rep era (TxOutF era) 
PParamsREra era ⇒ Proof era → Rep era (PParamsF era) 
FuturePParamsREra era ⇒ Proof era → Rep era (FuturePParams era) 
PParamsUpdateREra era ⇒ Proof era → Rep era (PParamsUpdateF era) 
DeltaCoinRRep era DeltaCoin 
GenDelegPairREra era ⇒ Rep era GenDelegPair 
FutureGenDelegREra era ⇒ Rep era FutureGenDeleg 
PPUPStateREra era ⇒ Proof era → Rep era (ShelleyGovState era) 
PtrRRep era Ptr 
IPoolStakeREra era ⇒ Rep era IndividualPoolStake 
SnapShotsREra era ⇒ Rep era SnapShots 
RewardREra era ⇒ Rep era Reward 
MaybeRRep era t → Rep era (Maybe t) 
SlotNoRRep era SlotNo 
SizeRRep era Size 
MultiAssetREra era ⇒ Rep era MultiAsset 
PolicyIDREra era ⇒ Rep era PolicyID 
WitnessesFieldREra era ⇒ Proof era → Rep era (WitnessesField era) 
AssetNameRRep era AssetName 
TxCertREra era ⇒ Proof era → Rep era (TxCertF era) 
RewardAccountREra era ⇒ Rep era RewardAccount 
ValidityIntervalREra era ⇒ Rep era ValidityInterval 
KeyPairREra era ⇒ Rep era (KeyPair 'Witness) 
GenRRep era x → Rep era (Gen x) 
ScriptREra era ⇒ Proof era → Rep era (ScriptF era) 
ScriptHashREra era ⇒ Rep era ScriptHash 
NetworkRRep era Network 
RdmrPtrREra era ⇒ Proof era → Rep era (PlutusPointerF era) 
DataREra era ⇒ Rep era (Data era) 
DatumREra era ⇒ Rep era (Datum era) 
ExUnitsRRep era ExUnits 
DataHashREra era ⇒ Rep era DataHash 
PCredREra era ⇒ Rep era (Credential 'Payment) 
ShelleyTxCertREra era ⇒ Rep era (ShelleyTxCert era) 
ConwayTxCertREra era ⇒ Rep era (ConwayTxCert era) 
MIRPotRRep era MIRPot 
IsValidRRep era IsValid 
IntegerRRep era Integer 
ScriptsNeededREra era ⇒ Proof era → Rep era (ScriptsNeededF era) 
ScriptPurposeREra era ⇒ Proof era → Rep era (PlutusPurposeF era) 
TxBodyREra era ⇒ Proof era → Rep era (TxBodyF era) 
BootstrapWitnessREra era ⇒ Rep era BootstrapWitness 
SigningKeyRRep era SigningKey 
TxWitsREra era ⇒ Proof era → Rep era (TxWitsF era) 
PayHashREra era ⇒ Rep era (KeyHash 'Payment) 
TxREra era ⇒ Proof era → Rep era (TxF era) 
ScriptIntegrityHashREra era ⇒ Rep era (SafeHash EraIndependentScriptIntegrity) 
TxAuxDataHashREra era ⇒ Rep era TxAuxDataHash 
GovActionREra era ⇒ Rep era (GovAction era) 
WitVKeyREra era ⇒ Proof era → Rep era (WitVKey 'Witness) 
TxAuxDataREra era ⇒ Proof era → Rep era (TxAuxDataF era) 
LanguageRRep era Language 
LedgerStateREra era ⇒ Proof era → Rep era (LedgerState era) 
StakeHashREra era ⇒ Rep era (KeyHash 'Staking) 
BoolRRep era Bool 
DRepREra era ⇒ Rep era DRep 
PoolMetadataREra era ⇒ Proof era → Rep era PoolMetadata 
DRepStateREra era ⇒ Rep era DRepState 
DStateREra era ⇒ Rep era (DState era) 
GovActionIdREra era ⇒ Rep era GovActionId 
GovActionIxRRep era GovActionIx 
GovActionStateREra era ⇒ Rep era (GovActionState era) 
ProposalsREra era ⇒ Proof era → Rep era (Proposals era) 
UnitIntervalRRep era UnitInterval 
CommitteeREra era ⇒ Rep era (Committee era) 
ConstitutionREra era ⇒ Rep era (Constitution era) 
PrevGovActionIdsREra era ⇒ Rep era (GovRelation StrictMaybe era) 
PrevPParamUpdateREra era ⇒ Rep era (GovPurposeId 'PParamUpdatePurpose era) 
PrevHardForkREra era ⇒ Rep era (GovPurposeId 'HardForkPurpose era) 
PrevCommitteeREra era ⇒ Rep era (GovPurposeId 'CommitteePurpose era) 
PrevConstitutionREra era ⇒ Rep era (GovPurposeId 'ConstitutionPurpose era) 
RatifyStateRReflect era ⇒ Rep era (RatifyState era) 
NumDormantEpochsREra era ⇒ Rep era EpochNo 
DRepHashREra era ⇒ Rep era (KeyHash 'DRepRole) 
AnchorREra era ⇒ Rep era Anchor 
CommitteeStateREra era ⇒ Rep era (CommitteeState era) 
CommitteeAuthorizationREra era ⇒ Rep era CommitteeAuthorization 
VStateREra era ⇒ Rep era (VState era) 
EnactStateRReflect era ⇒ Rep era (EnactState era) 
DRepPulserR ∷ (RunConwayRatify era, Reflect era) ⇒ Rep era (DRepPulser era Identity (RatifyState era)) 
DelegateeREra era ⇒ Rep era Delegatee 
VoteRRep era Vote 

Instances

Instances details
Singleton (Rep era ∷ TypeType) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.TypeRep

Methods

testEql ∷ ∀ (i ∷ k) (j ∷ k). Rep era i → Rep era j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k) (b ∷ k). Rep era a → Rep era b → Ordering Source #

Show (Rep era t) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.TypeRep

Methods

showsPrecIntRep era t → ShowS #

showRep era t → String #

showList ∷ [Rep era t] → ShowS #

Eq (Rep e t) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Env

Methods

(==)Rep e t → Rep e t → Bool #

(/=)Rep e t → Rep e t → Bool #

Hashable (Rep e t) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Env

Methods

hashWithSaltIntRep e t → Int Source #

hashRep e t → Int Source #

data (a ∷ k) :~: (b ∷ k) where #

Constructors

Refl ∷ ∀ {k} (a ∷ k). a :~: a 

Instances

Instances details
Category ((:~:) ∷ k → k → Type) 
Instance details

Defined in Control.Category

Methods

id ∷ ∀ (a ∷ k0). a :~: a #

(.) ∷ ∀ (b ∷ k0) (c ∷ k0) (a ∷ k0). (b :~: c) → (a :~: b) → a :~: c #

TestEquality ((:~:) a ∷ k → Type) 
Instance details

Defined in Data.Type.Equality

Methods

testEquality ∷ ∀ (a0 ∷ k0) (b ∷ k0). (a :~: a0) → (a :~: b) → Maybe (a0 :~: b) #

GNFData ((:~:) a ∷ k → Type)

Since: some-1.0.3

Instance details

Defined in Data.GADT.DeepSeq

Methods

grnf ∷ ∀ (a0 ∷ k0). (a :~: a0) → () Source #

GCompare ((:~:) a ∷ k → Type) 
Instance details

Defined in Data.GADT.Internal

Methods

gcompare ∷ ∀ (a0 ∷ k0) (b ∷ k0). (a :~: a0) → (a :~: b) → GOrdering a0 b Source #

GEq ((:~:) a ∷ k → Type) 
Instance details

Defined in Data.GADT.Internal

Methods

geq ∷ ∀ (a0 ∷ k0) (b ∷ k0). (a :~: a0) → (a :~: b) → Maybe (a0 :~: b) Source #

GRead ((:~:) a ∷ k → Type) 
Instance details

Defined in Data.GADT.Internal

Methods

greadsPrecIntGReadS ((:~:) a) Source #

GShow ((:~:) a ∷ k → Type) 
Instance details

Defined in Data.GADT.Internal

Methods

gshowsPrec ∷ ∀ (a0 ∷ k0). Int → (a :~: a0) → ShowS Source #

NFData2 ((:~:)TypeTypeType) 
Instance details

Defined in Control.DeepSeq

Methods

liftRnf2 ∷ (a → ()) → (b → ()) → (a :~: b) → ()

NFData1 ((:~:) a) 
Instance details

Defined in Control.DeepSeq

Methods

liftRnf ∷ (a0 → ()) → (a :~: a0) → ()

a ~ b ⇒ Bounded (a :~: b) 
Instance details

Defined in Data.Type.Equality

Methods

minBound ∷ a :~: b #

maxBound ∷ a :~: b #

a ~ b ⇒ Enum (a :~: b) 
Instance details

Defined in Data.Type.Equality

Methods

succ ∷ (a :~: b) → a :~: b #

pred ∷ (a :~: b) → a :~: b #

toEnumInt → a :~: b #

fromEnum ∷ (a :~: b) → Int #

enumFrom ∷ (a :~: b) → [a :~: b] #

enumFromThen ∷ (a :~: b) → (a :~: b) → [a :~: b] #

enumFromTo ∷ (a :~: b) → (a :~: b) → [a :~: b] #

enumFromThenTo ∷ (a :~: b) → (a :~: b) → (a :~: b) → [a :~: b] #

a ~ b ⇒ Read (a :~: b) 
Instance details

Defined in Data.Type.Equality

Methods

readsPrecIntReadS (a :~: b) #

readListReadS [a :~: b] #

readPrec ∷ ReadPrec (a :~: b) #

readListPrec ∷ ReadPrec [a :~: b] #

Show (a :~: b) 
Instance details

Defined in Data.Type.Equality

Methods

showsPrecInt → (a :~: b) → ShowS #

show ∷ (a :~: b) → String #

showList ∷ [a :~: b] → ShowS #

NFData (a :~: b) 
Instance details

Defined in Control.DeepSeq

Methods

rnf ∷ (a :~: b) → () #

Eq (a :~: b) 
Instance details

Defined in Data.Type.Equality

Methods

(==) ∷ (a :~: b) → (a :~: b) → Bool #

(/=) ∷ (a :~: b) → (a :~: b) → Bool #

Ord (a :~: b) 
Instance details

Defined in Data.Type.Equality

Methods

compare ∷ (a :~: b) → (a :~: b) → Ordering #

(<) ∷ (a :~: b) → (a :~: b) → Bool #

(<=) ∷ (a :~: b) → (a :~: b) → Bool #

(>) ∷ (a :~: b) → (a :~: b) → Bool #

(>=) ∷ (a :~: b) → (a :~: b) → Bool #

max ∷ (a :~: b) → (a :~: b) → a :~: b #

min ∷ (a :~: b) → (a :~: b) → a :~: b #

class Singleton (t ∷ k → Type) where Source #

Given (Singleton T), a value of type (T i) has exactly 0 or 1 inhabitants, so we can compare the structure of the type to get proofs that the indexes (i and j) are the same type, using testEql, at runtime. cmpIndex, it is like compare except we can have two different indexes (a and b).

Methods

testEql ∷ ∀ (i ∷ k) (j ∷ k). t i → t j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k) (b ∷ k). t a → t b → Ordering Source #

Instances

Instances details
Singleton R 
Instance details

Defined in Data.Universe

Methods

testEql ∷ ∀ (i ∷ k) (j ∷ k). R i → R j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k) (b ∷ k). R a → R b → Ordering Source #

Singleton Proof Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Proof

Methods

testEql ∷ ∀ (i ∷ k) (j ∷ k). Proof i → Proof j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k) (b ∷ k). Proof a → Proof b → Ordering Source #

Singleton (Rep era ∷ TypeType) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.TypeRep

Methods

testEql ∷ ∀ (i ∷ k) (j ∷ k). Rep era i → Rep era j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k) (b ∷ k). Rep era a → Rep era b → Ordering Source #

Singleton (TypeRep ∷ k → Type) 
Instance details

Defined in Data.Universe

Methods

testEql ∷ ∀ (i ∷ k0) (j ∷ k0). TypeRep i → TypeRep j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k0) (b ∷ k0). TypeRep a → TypeRep b → Ordering Source #

type Eql (x ∷ k) (y ∷ k) = x :~: y Source #

Type synonym, so we can use ( :~: ) without TypeOperators

typeRepOfRep era t → TypeRep Source #

synopsis ∷ ∀ e t. Rep e t → t → String Source #

genSizedRep ∷ ∀ era t. IntRep era t → Gen t Source #

genRep ∷ ∀ era b. Rep era b → Gen b Source #

shrinkRepRep era t → t → [t] Source #

data TxOutF era where Source #

Constructors

TxOutFProof era → TxOut era → TxOutF era 

Instances

Instances details
Show (TxOutF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

showsPrecIntTxOutF era → ShowS #

showTxOutF era → String #

showList ∷ [TxOutF era] → ShowS #

PrettyA (TxOutF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

prettyATxOutF era → PDoc Source #

Eq (TxOutF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

(==)TxOutF era → TxOutF era → Bool #

(/=)TxOutF era → TxOutF era → Bool #

Ord (TxOutF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

compareTxOutF era → TxOutF era → Ordering #

(<)TxOutF era → TxOutF era → Bool #

(<=)TxOutF era → TxOutF era → Bool #

(>)TxOutF era → TxOutF era → Bool #

(>=)TxOutF era → TxOutF era → Bool #

maxTxOutF era → TxOutF era → TxOutF era #

minTxOutF era → TxOutF era → TxOutF era #

Reflect era ⇒ Sums (TxOutF era) Coin Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

getSumTxOutF era → Coin Source #

genT ∷ [String] → CoinGen (TxOutF era) Source #

unTxOutTxOutF era → TxOut era Source #

data ValueF era where Source #

Constructors

ValueFProof era → Value era → ValueF era 

Instances

Instances details
Show (ValueF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

showsPrecIntValueF era → ShowS #

showValueF era → String #

showList ∷ [ValueF era] → ShowS #

PrettyA (ValueF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

prettyAValueF era → PDoc Source #

Eq (ValueF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

(==)ValueF era → ValueF era → Bool #

(/=)ValueF era → ValueF era → Bool #

Ord (ValueF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

compareValueF era → ValueF era → Ordering #

(<)ValueF era → ValueF era → Bool #

(<=)ValueF era → ValueF era → Bool #

(>)ValueF era → ValueF era → Bool #

(>=)ValueF era → ValueF era → Bool #

maxValueF era → ValueF era → ValueF era #

minValueF era → ValueF era → ValueF era #

Reflect era ⇒ Sums (ValueF era) Coin Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

getSumValueF era → Coin Source #

genT ∷ [String] → CoinGen (ValueF era) Source #

unValueValueF era → Value era Source #

data PParamsF era where Source #

Constructors

PParamsFProof era → PParams era → PParamsF era 

Instances

Instances details
Show (PParamsF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

showsPrecIntPParamsF era → ShowS #

showPParamsF era → String #

showList ∷ [PParamsF era] → ShowS #

PrettyA (PParamsF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

prettyAPParamsF era → PDoc Source #

Eq (PParamsF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

(==)PParamsF era → PParamsF era → Bool #

(/=)PParamsF era → PParamsF era → Bool #

data PParamsUpdateF era where Source #

Constructors

PParamsUpdateFProof era → PParamsUpdate era → PParamsUpdateF era 

Instances

Instances details
Show (PParamsUpdateF era) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

showsPrecIntPParamsUpdateF era → ShowS #

showPParamsUpdateF era → String #

showList ∷ [PParamsUpdateF era] → ShowS #

liftUTxOMap TxIn (TxOutF era) → UTxO era Source #

data Proof era where Source #

Proof of a valid (predefined) era

Instances

Instances details
Singleton Proof Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Proof

Methods

testEql ∷ ∀ (i ∷ k) (j ∷ k). Proof i → Proof j → Maybe (i :~: j) Source #

cmpIndex ∷ ∀ (a ∷ k) (b ∷ k). Proof a → Proof b → Ordering Source #

Shaped Proof any Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Proof

Methods

shape ∷ ∀ (i ∷ k). Proof i → Shape any Source #

Show (Proof e) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Proof

Methods

showsPrecIntProof e → ShowS #

showProof e → String #

showList ∷ [Proof e] → ShowS #

Eq (Proof e) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Env

Methods

(==)Proof e → Proof e → Bool #

(/=)Proof e → Proof e → Bool #

Hashable (Proof e) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Env

Methods

hashWithSaltIntProof e → Int Source #

hashProof e → Int Source #

Show (Some Proof) Source # 
Instance details

Defined in Test.Cardano.Ledger.Generic.Proof

Methods

showsPrecIntSome ProofShowS #

showSome ProofString #

showList ∷ [Some Proof] → ShowS #

hasOrdRep era t → s t → Typed (HasConstraint Ord (s t)) Source #

hasEqRep era t → s t → Typed (HasConstraint Eq (s t)) Source #

formatRep era t → t → String Source #

genSigningKeyGen SigningKey Source #

Turn a random bytestring into a SigningKey