netwire-5.0.2: Functional reactive programming library

FRP.Netwire

Description

Synopsis

# Netwire reexports

data Wire s e m a b Source #

A wire is a signal function. It maps a reactive value to another reactive value.

Instances

type WireP s e = Wire s e Identity Source #

Pure wires.

Simple wires with time.

delay :: a -> Wire s e m a a Source #

This wire delays its input signal by the smallest possible (semantically infinitesimal) amount of time. You can use it when you want to use feedback (ArrowLoop): If the user of the feedback depends on now, delay the value before feeding it back. The argument value is the replacement signal at the beginning.

• Depends: before now.

evalWith :: Strategy a -> Wire s e m a a Source #

Evaluate the input signal using the given Strategy here. This wire evaluates only produced values.

• Depends: now.

force :: Wire s e m a a Source #

Force the input signal to WHNF here. This wire forces both produced values and inhibition values.

• Depends: now.

forceNF :: NFData a => Wire s e m a a Source #

Force the input signal to NF here. This wire forces only produced values.

• Depends: now.