machines-0.1.2: Networked stream transducers

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

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 bSource

A Mealy machine modeled with explicit state.

logMealy :: Semigroup a => Mealy a aSource

Accumulate history.