HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

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