Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class (ForAllRuleTypes (HasSpec fn) rule era, ForAllRuleTypes ToExpr rule era, ForAllRuleTypes NFData rule era, Eq (Event (EraRule rule era)), Typeable (Event (EraRule rule era)), KnownSymbol rule, STS (EraRule rule era), BaseM (EraRule rule era) ~ ShelleyBase, SpecTranslate (ExecContext fn rule era) (PredicateFailure (EraRule rule era))) ⇒ ExecSpecRule fn (rule ∷ Symbol) era where Source #
type ExecContext fn rule era Source #
type ExecContext fn rule era = ()
environmentSpec ∷ ExecContext fn rule era → Specification fn (Environment (EraRule rule era)) Source #
stateSpec ∷ ExecContext fn rule era → Environment (EraRule rule era) → Specification fn (State (EraRule rule era)) Source #
signalSpec ∷ ExecContext fn rule era → Environment (EraRule rule era) → State (EraRule rule era) → Specification fn (Signal (EraRule rule era)) Source #
genExecContext ∷ Gen (ExecContext fn rule era) Source #
default genExecContext ∷ Arbitrary (ExecContext fn rule era) ⇒ Gen (ExecContext fn rule era) Source #
runAgdaRule ∷ SpecRep (Environment (EraRule rule era)) → SpecRep (State (EraRule rule era)) → SpecRep (Signal (EraRule rule era)) → Either (NonEmpty (SpecRep (PredicateFailure (EraRule rule era)))) (SpecRep (State (EraRule rule era))) Source #
translateInputs ∷ Environment (EraRule rule era) → State (EraRule rule era) → Signal (EraRule rule era) → ExecContext fn rule era → ImpTestM era (SpecRep (Environment (EraRule rule era)), SpecRep (State (EraRule rule era)), SpecRep (Signal (EraRule rule era))) Source #
default translateInputs ∷ (ForAllRuleTypes (SpecTranslate (ExecContext fn rule era)) rule era, ToExpr (SpecRep (Environment (EraRule rule era))), ToExpr (SpecRep (State (EraRule rule era))), ToExpr (SpecRep (Signal (EraRule rule era)))) ⇒ Environment (EraRule rule era) → State (EraRule rule era) → Signal (EraRule rule era) → ExecContext fn rule era → ImpTestM era (SpecRep (Environment (EraRule rule era)), SpecRep (State (EraRule rule era)), SpecRep (Signal (EraRule rule era))) Source #
testConformance ∷ (ShelleyEraImp era, SpecTranslate (ExecContext fn rule era) (State (EraRule rule era)), NFData (SpecRep (Environment (EraRule rule era))), NFData (SpecRep (State (EraRule rule era))), NFData (SpecRep (Signal (EraRule rule era))), NFData (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (SpecRep (Environment (EraRule rule era))), ToExpr (SpecRep (State (EraRule rule era))), ToExpr (SpecRep (Signal (EraRule rule era))), ToExpr (SpecRep (PredicateFailure (EraRule rule era))), FixupSpecRep (SpecRep (PredicateFailure (EraRule rule era))), FixupSpecRep (SpecRep (State (EraRule rule era))), Eq (SpecRep (PredicateFailure (EraRule rule era))), Eq (SpecRep (State (EraRule rule era)))) ⇒ ExecContext fn rule era → Environment (EraRule rule era) → State (EraRule rule era) → Signal (EraRule rule era) → Property Source #
Instances
conformsToImpl ∷ ∀ (rule ∷ Symbol) fn era. (ShelleyEraImp era, ExecSpecRule fn rule era, NFData (SpecRep (Environment (EraRule rule era))), NFData (SpecRep (State (EraRule rule era))), NFData (SpecRep (Signal (EraRule rule era))), NFData (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (SpecRep (Environment (EraRule rule era))), ToExpr (SpecRep (State (EraRule rule era))), ToExpr (SpecRep (Signal (EraRule rule era))), ToExpr (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (ExecContext fn rule era), SpecTranslate (ExecContext fn rule era) (State (EraRule rule era)), FixupSpecRep (SpecRep (PredicateFailure (EraRule rule era))), FixupSpecRep (SpecRep (State (EraRule rule era))), Eq (SpecRep (PredicateFailure (EraRule rule era))), Eq (SpecRep (State (EraRule rule era)))) ⇒ Property Source #
computationResultToEither ∷ ComputationResult e a → Either e a Source #
runConformance ∷ ∀ (rule ∷ Symbol) (fn ∷ [Type] → Type → Type) era. (ExecSpecRule fn rule era, NFData (SpecRep (Environment (EraRule rule era))), NFData (SpecRep (State (EraRule rule era))), NFData (SpecRep (Signal (EraRule rule era))), NFData (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (SpecRep (Environment (EraRule rule era))), ToExpr (SpecRep (State (EraRule rule era))), ToExpr (SpecRep (Signal (EraRule rule era))), SpecTranslate (ExecContext fn rule era) (State (EraRule rule era)), FixupSpecRep (SpecRep (PredicateFailure (EraRule rule era))), FixupSpecRep (SpecRep (State (EraRule rule era)))) ⇒ ExecContext fn rule era → Environment (EraRule rule era) → State (EraRule rule era) → Signal (EraRule rule era) → ImpTestM era (Either (NonEmpty (SpecRep (PredicateFailure (EraRule rule era)))) (SpecRep (State (EraRule rule era))), Either (NonEmpty (SpecRep (PredicateFailure (EraRule rule era)))) (SpecRep (State (EraRule rule era)))) Source #
checkConformance ∷ (ToExpr (SpecRep (PredicateFailure (EraRule rule era))), ToExpr (SpecRep (State (EraRule rule era))), Eq (SpecRep (PredicateFailure (EraRule rule era))), Eq (SpecRep (State (EraRule rule era)))) ⇒ Either (NonEmpty (SpecRep (PredicateFailure (EraRule rule era)))) (SpecRep (State (EraRule rule era))) → Either (NonEmpty (SpecRep (PredicateFailure (EraRule rule era)))) (SpecRep (State (EraRule rule era))) → ImpTestM era () Source #