machines-0.2.3: Networked stream transducers

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

Data.Machine.Moore

Description

Synopsis

Documentation

data Moore a b Source

Moore machines

Constructors

Moore b (a -> Moore a b) 

Instances

logMoore :: Monoid m => Moore m mSource

Accumulate the input as a sequence.

unfoldMoore :: (s -> (b, a -> s)) -> s -> Moore a bSource

Construct a Moore machine from a state valuation and transition function