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

  • 1 type
  • 2 values
  • Packagemachines-0.7.4
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceMealy.hs
newtypenewtype Mealy a b
#

Mealy machines

Examples

We can enumerate inputs:

Example2 expressions
let countingMealy = unfoldMealy (\i x -> ((i, x), i + 1)) 0run (auto countingMealy <~ source "word")[(0,'w'),(1,'o'),(2,'r'),(3,'d')]

Constructors

Instances22Arrow, ArrowApply, ArrowChoice, Choice, Closed, Costrong, …