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.Monad

Synopsis

Documentation

newtype Typed x Source #

Constructors

Typed 

Fields

Instances

Instances details
MonadFail Typed Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Monad

Methods

failStringTyped a Source #

Applicative Typed Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Monad

Methods

pure ∷ a → Typed a Source #

(<*>)Typed (a → b) → Typed a → Typed b Source #

liftA2 ∷ (a → b → c) → Typed a → Typed b → Typed c Source #

(*>)Typed a → Typed b → Typed b Source #

(<*)Typed a → Typed b → Typed a Source #

Functor Typed Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Monad

Methods

fmap ∷ (a → b) → Typed a → Typed b Source #

(<$) ∷ a → Typed b → Typed a Source #

Monad Typed Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Monad

Methods

(>>=)Typed a → (a → Typed b) → Typed b Source #

(>>)Typed a → Typed b → Typed b Source #

return ∷ a → Typed a Source #

class LiftT x where Source #

Methods

liftT ∷ x → Typed x Source #

dropTTyped x → x Source #

Instances

Instances details
LiftT Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

LiftT (AddsSpec c) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Classes

Methods

liftTAddsSpec c → Typed (AddsSpec c) Source #

dropTTyped (AddsSpec c) → AddsSpec c Source #

LiftT (ElemSpec era t) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTElemSpec era t → Typed (ElemSpec era t) Source #

dropTTyped (ElemSpec era t) → ElemSpec era t Source #

LiftT (ListSpec era t) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTListSpec era t → Typed (ListSpec era t) Source #

dropTTyped (ListSpec era t) → ListSpec era t Source #

LiftT (RelSpec era a) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTRelSpec era a → Typed (RelSpec era a) Source #

dropTTyped (RelSpec era a) → RelSpec era a Source #

LiftT (RngSpec era a) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTRngSpec era a → Typed (RngSpec era a) Source #

dropTTyped (RngSpec era a) → RngSpec era a Source #

LiftT (SetSpec era t) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTSetSpec era t → Typed (SetSpec era t) Source #

dropTTyped (SetSpec era t) → SetSpec era t Source #

LiftT (MapSpec era a b) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTMapSpec era a b → Typed (MapSpec era a b) Source #

dropTTyped (MapSpec era a b) → MapSpec era a b Source #

LiftT (PairSpec era dom rng) Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Spec

Methods

liftTPairSpec era dom rng → Typed (PairSpec era dom rng) Source #

dropTTyped (PairSpec era dom rng) → PairSpec era dom rng Source #

failT ∷ [String] → Typed a Source #

explainStringTyped a → Typed a Source #

mergeExplain ∷ (Monoid x, LiftT x) ⇒ String → x → x → x Source #

data HasConstraint c t where Source #

runTime evidence that the index i of an indexed type '(s i)' is constrained by the class c. If one has an un-indexed type t one can always use (Id t) instead. Eg With (Id x) <- hasOrd repT (Id t)

Constructors

With ∷ c t ⇒ s t → HasConstraint c (s t) 

newtype Id x Source #

Constructors

Id x 

errorTypedHasCallStackTyped t → t Source #

Pushes the (Left msgs) into a call to error

monadTyped ∷ (HasCallStack, Monad m) ⇒ Typed t → m t Source #

Pushes the (Left msgs) into a call to error, then injects into a Monad

requireAll ∷ [(Bool, [String])] → Typed a → Typed a Source #

generateWithSeedIntGen a → IO a Source #