Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
- inhibit :: e -> Wire s e m a b
- after :: (HasTime t s, Monoid e) => t -> Wire s e m a a
- for :: (HasTime t s, Monoid e) => t -> Wire s e m a a
- unless :: Monoid e => (a -> Bool) -> Wire s e m a a
- when :: Monoid e => (a -> Bool) -> Wire s e m a a
- asSoonAs :: Monoid e => Wire s e m (Event a) a
- between :: Monoid e => Wire s e m (a, Event b, Event c) a
- hold :: Monoid e => Wire s e m (Event a) a
- holdFor :: (HasTime t s, Monoid e) => t -> Wire s e m (Event a) a
- until :: Monoid e => Wire s e m (a, Event b) a
Basic intervals
Time intervals
after :: (HasTime t s, Monoid e) => t -> Wire s e m a aSource
After the given time period.
- Depends: now after the given time period.
- Inhibits: for the given time period.
for :: (HasTime t s, Monoid e) => t -> Wire s e m a aSource
For the given time period.
- Depends: now for the given time period.
- Inhibits: after the given time period.
Signal analysis
unless :: Monoid e => (a -> Bool) -> Wire s e m a aSource
When the given predicate is false for the input signal.
- Depends: now.
- Inhibits: unless the predicate is false.
when :: Monoid e => (a -> Bool) -> Wire s e m a aSource
When the given predicate is true for the input signal.
- Depends: now.
- Inhibits: when the predicate is false.
Event-based intervals
between :: Monoid e => Wire s e m (a, Event b, Event c) aSource
Start each time the left event occurs, stop each time the right event occurs.
- Depends: now when active.
- Inhibits: after the right event occurred, before the left event occurs.
hold :: Monoid e => Wire s e m (Event a) aSource
Start when the event occurs for the first time reflecting its latest value.
- Depends: now.
- Inhibits: until the event occurs for the first time.
holdFor :: (HasTime t s, Monoid e) => t -> Wire s e m (Event a) aSource
Hold each event occurrence for the given time period. Inhibits when no event occurred for the given amount of time. New occurrences override old occurrences, even when they are still held.
- Depends: now.
- Inhibits: when no event occurred for the given amount of time.