wires-0.2.1: Functional reactive programming library

Copyright(c) 2017 Ertugrul Söylemez
LicenseBSD3
MaintainerErtugrul Söylemez <esz@posteo.de>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Control.Wire.Controller

Contents

Description

 

Synopsis

Controllers

animate :: Applicative m => Wire m (m a) a Source #

Run the given action in every frame.

control :: Monad m => Wire m () (Event b) -> m b Source #

Run the given wire until its result event occurs.

newEvent :: Functor m => Wire m (m (Maybe b)) (Event b) Source #

Construct an event from the given polling function.

onEvent :: Applicative m => Wire m (Event (m a)) (Event a) Source #

Run the given action whenever the given event occurs.

stepWire :: Wire m a b -> a -> m (b, Wire m a b) Source #

Run a single frame of the given wire.