netwire-4.0.0: Flexible wire arrows for FRP

Copyright(c) 2012 Ertugrul Soeylemez
LicenseBSD3
MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone
LanguageHaskell2010

Control.Wire.Trans.Simple

Contents

Description

Basic wire combinators.

Synopsis

Predicate-based

ifW Source

Arguments

:: (Monad m, Monoid e) 
=> Wire e m a Bool

Predicate.

-> Wire e m a b

If true.

-> Wire e m a b

If false.

-> Wire e m a b 

The wire ifW p x y acts like x, when the predicate p is true, otherwise y.

  • Complexity: like the predicate and the chosen wire.
  • Depends: like the predicate and the chosen wire.
  • Inhibits: when the predicate or the chosen wire inhibits.