machines-0.5.1: 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.Moore

Description

Synopsis

Documentation

data Moore a b Source

Moore machines

Constructors

Moore b (a -> Moore a b) 

Instances

logMoore :: Monoid m => Moore m m Source

Accumulate the input as a sequence.

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

Construct a Moore machine from a state valuation and transition function