Modulesmall-steps-1.1.4.0
Control.State.Transition
Synopsis
- value ?!
- value ?!:
- value applyRuleInternal
- value applySTSInternal
- value applySTSOpts
- value applySTSOptsEither
- value applySTSOptsResult
- value failBecause
- value failOnJust
- value failOnNonEmpty
- value failOnNonEmptyMap
- value failOnNonEmptySet
- value failureOnJust
- value failureOnNonEmpty
- value failureOnNonEmptyMap
- value failureOnNonEmptySet
- value globalAssertionPolicy
- value ifFailureFree
- value judgmentContext
- value labeled
- value labeledPred
- value labeledPredE
- value liftSTS
- value mapEventReturn
- value reapplySTS
- value runRule
- value sfor_
- value tellEvent
- value tellEvents
- value trans
- value validate
- value validateTrans
- value validateTransLabeled
- value whenFailureFree
- value whenFailureFreeDefault
- value applySTS
- value applySTSIndifferently
- data ApplySTSOpts
- data Assertion
- data AssertionException
- data AssertionPolicy
- data AssertionViolation
- family BaseM
- class Embed
- family Environment
- family Event
- data EventPolicy
- family EventReturnType
- class EventReturnTypeRep
- newtype IRC
- type InitialRule
- type Label
- family PredicateFailure
- type Rule
- family RuleContext
- type RuleInterpreter
- data RuleType
- class RuleTypeRep
- class STS
- type STSInterpreter
- data STSResult
- data STUB
- family Signal
- data SingEP
- family State
- newtype TRC
- newtype Threshold
- type TransitionRule
- data ValidationPolicy
- Packagesmall-steps-1.1.4.0
- Exports69
- LicenceApache-2.0
Constructors
Constructors
PreCondition String (TRC sts -> Bool)PostCondition String (TRC sts -> State sts -> Bool)
Constructors
AssertionException :: STS sts => AssertionViolation sts -> AssertionException
Instances2Show, Exception
Show AssertionExceptionDefined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedException AssertionExceptionDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Instances2Eq, Show
Eq AssertionPolicyDefined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedShow AssertionPolicyDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Instances1Show
STS sts => Show (AssertionViolation sts)Defined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Methods
wrapFailed :: PredicateFailure sub -> PredicateFailure superwrapEvent :: Event sub -> Event super
Instances1Environment
type Environment (STUB e st si f m) = eDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Equations
EventReturnType 'EventPolicyReturn sts a = (a, [Event sts])EventReturnType _1 _2 a = a
Instances2EventReturnTypeRep
EventReturnTypeRep 'EventPolicyDiscardDefined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedEventReturnTypeRep 'EventPolicyReturnDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Constructors
IRC (Environment sts)
Instances1PredicateFailure
type PredicateFailure (STUB e st si f m) = fDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Equations
type
type RuleInterpreter (ep :: EventPolicy) = forall s (m :: Type -> Type) (rtype :: RuleType). (STS s, RuleTypeRep rtype, m ~ BaseM s) => RuleContext rtype s -> Rule s rtype (State s) -> m (EventReturnType ep s (State s, [PredicateFailure s]))Instances2RuleTypeRep
RuleTypeRep 'InitialDefined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedRuleTypeRep 'TransitionDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
class
class (Eq (PredicateFailure a), Show (PredicateFailure a), Monad (BaseM a), Typeable a) => STS a whereAssociated types
type family State atype family Signal atype family Environment atype family BaseM a :: Type -> Typetype family Event atype family PredicateFailure a
Methods
initialRules :: [InitialRule a]transitionRules :: [TransitionRule a]assertions :: [Assertion a]renderAssertionViolation :: AssertionViolation a -> String
type
type STSInterpreter (ep :: EventPolicy) = forall s (m :: Type -> Type) (rtype :: RuleType). (STS s, RuleTypeRep rtype, m ~ BaseM s) => RuleContext rtype s -> m (EventReturnType ep s (State s, [PredicateFailure s]))Constructors
STSResultstsResultState :: State sstsResultFailures :: [PredicateFailure s]stsResultEvents :: [Event s]
Instances7STS, BaseM, Environment, Event, PredicateFailure, Signal, …
(Eq f, Monad m, Show f, Typeable e, Typeable f, Typeable si, Typeable st, Typeable m) => STS (STUB e st si f m)Defined in small-steps-1.1.4.0 · Control.State.Transition.Extendedtype BaseM (STUB e st si f m) = mDefined in small-steps-1.1.4.0 · Control.State.Transition.Extendedtype Environment (STUB e st si f m) = eDefined in small-steps-1.1.4.0 · Control.State.Transition.Extendedtype Event (STUB e st si f m) = VoidDefined in small-steps-1.1.4.0 · Control.State.Transition.Extendedtype PredicateFailure (STUB e st si f m) = fDefined in small-steps-1.1.4.0 · Control.State.Transition.Extendedtype Signal (STUB e st si f m) = siDefined in small-steps-1.1.4.0 · Control.State.Transition.Extendedtype State (STUB e st si f m) = stDefined in small-steps-1.1.4.0 · Control.State.Transition.Extended
Constructors
Constructors
TRC (Environment sts, State sts, Signal sts)
Constructors
Instances5Eq, Data, Ord, Show, NoThunks
Eq a => Eq (Threshold a)Defined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedData a => Data (Threshold a)Defined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedOrd a => Ord (Threshold a)Defined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedShow a => Show (Threshold a)Defined in small-steps-1.1.4.0 · Control.State.Transition.ExtendedNoThunks a => NoThunks (Threshold a)Defined in small-steps-1.1.4.0 · Control.State.Transition.Extended