HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Modulevortex-journal-0.1.0GHC2024

Vortex.Journal.Decide

Deciding a command: the enabled check, derived from the net. A command is decided against a state, all of its calls together: each is answered (by the oracle, or by the answer it carries) and must be enabled where the calls before it leave the state, or the whole command is refused.

  • 2 values
valuesubmit
  1. :: Ord tok
  2. => Net op ans tok
  3. -> Log op ans tok
  4. -> Command op ans
  5. -> Log op ans tok
#

Decide a command against the log's state and record what it answers; a refused command leaves the log as it was.