Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
Basic wire combinators.
Predicate-based
:: (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.