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

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

Modulevortex-journal-0.1.0GHC2024

Vortex.Journal.Migrate

Migration along a morphism of nets. A morphism sends each answered operation of the source to one of the target and each token to a marking of the target; it is a morphism when the target's initial marking, pre and post are the images of the source's. A log migrates by sending each entry along it, and then folding the migrated log in the target is sending the source fold along it: the fold is a functor.

  • 2 types
  • 3 values
valuemigrate
  1. :: Ord tok'
  2. => NetMorphism op ans tok op' ans' tok'
  3. -> Log op ans tok
  4. -> Log op' ans' tok'
#

A log sent along the morphism, entry by entry (a resumed log's base marking too).

valuecheckMorphism
  1. :: Ord tok'
  2. => Net op ans tok
  3. -> Net op' ans' tok'
  4. -> [Answered op ans]
  5. -> NetMorphism op ans tok op' ans' tok'
  6. -> [MorphismError op ans]
#

Check a candidate against the source's operations, as listed: the target's initial marking must be the source's sent along it, and so must every operation's pre and post.