machines-0.4: Networked stream transducers

Copyright(C) 2012 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Machine.Mealy

Description

Synopsis

Documentation

newtype Mealy a b Source

Mealy machines

Constructors

Mealy 

Fields

runMealy :: a -> (b, Mealy a b)
 

unfoldMealy :: (s -> a -> (b, s)) -> s -> Mealy a b Source

A Mealy machine modeled with explicit state.

logMealy :: Semigroup a => Mealy a a Source

Accumulate history.