AFSM-0.1.3.1: Arrowized functional state machines

Control.AFSM.Core

Contents

Description

Synopsis

# Documentation

buildSrc :: SM s a a -> [a] Source #

Source There are two kinds of source. First one is using the output of SM s a a as its input, then it becomes a perpetual motion, :) Second one is a SM which ignore its input, and output something based on its storage. The second one is easier to understand and use.

build a source, for example: buildSrc $foldlDelaySM (const (+1)) 0 [0..] buildSrc$ foldlDelaySM (+) 1 [1, 2, 4, 8, ...]

simpleSrc :: SM s () a -> [a] Source #