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

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulemachines-0.7.4Haskell2010

Data.Machine.Stack

  • 1 type
  • 4 values
  • Packagemachines-0.7.4
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStack.hs
datadata Stack a r where
#

This is a simple process type that knows how to push back input.

Constructors

valuepeek :: PlanT (Stack a) b m a
#

Peek at the next value in the input stream without consuming it

valuepop :: PlanT (Stack a) b m a
#

Pop the next value in the input stream

valuepush :: a -> Plan (Stack a) b ()
#

Push back into the input stream