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

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

Modulevortex-console-0.1.2GHC2021

Vortex.Console

A console session over a vortex socket, as a pure state machine: what the user typed, what was sent, what came back. Every front end (a browser component, a terminal, a game overlay) feeds it Events and performs the Outs; nothing here knows how frames travel.

  • 5 types
  • 4 values
datadata Kind
#

What a line of the transcript is.

Constructors

  • Block

    A block the user ran.

  • Said

    Something the block said on the way.

  • Result

    The block's value.

  • Failed

    The block's refusal or failure, or a transport problem.

Instances2Eq, Show
  • Eq KindDefined in vortex-console-0.1.2 · Vortex.Console
  • Show KindDefined in vortex-console-0.1.2 · Vortex.Console
datadata Event
#

Constructors

Instances2Eq, Show
  • Eq EventDefined in vortex-console-0.1.2 · Vortex.Console
  • Show EventDefined in vortex-console-0.1.2 · Vortex.Console
newtypenewtype Out
#

What the front end must do after a step.

Constructors

Instances2Eq, Show
  • Eq OutDefined in vortex-console-0.1.2 · Vortex.Console
  • Show OutDefined in vortex-console-0.1.2 · Vortex.Console
valueprefix :: Kind -> String
#

How a transcript line is introduced when shown as text.