Yampa-0.10.1.1: Library for programming hybrid systems.

Safe HaskellNone
LanguageHaskell98

FRP.Yampa.Basic

Contents

Synopsis

Basic signal functions

identity :: SF a a Source

Identity: identity = arr id

Using identity is preferred over lifting id, since the arrow combinators know how to optimise certain networks based on the transformations being applied.

constant :: b -> SF a b Source

Identity: constant b = arr (const b)

Using constant is preferred over lifting const, since the arrow combinators know how to optimise certain networks based on the transformations being applied.

Initialization

(-->) :: b -> SF a b -> SF a b infixr 0 Source

Initialization operator (cf. Lustre/Lucid Synchrone).

The output at time zero is the first argument, and from that point on it behaves like the signal function passed as second argument.

(>--) :: a -> SF a b -> SF a b infixr 0 Source

Input initialization operator.

The input at time zero is the first argument, and from that point on it behaves like the signal function passed as second argument.

(-=>) :: (b -> b) -> SF a b -> SF a b infixr 0 Source

Transform initial output value.

Applies a transformation f only to the first output value at time zero.

(>=-) :: (a -> a) -> SF a b -> SF a b infixr 0 Source

Transform initial input value.

Applies a transformation f only to the first input value at time zero.

initially :: a -> SF a a Source

Override initial value of input signal.