Yampa-0.9.6: Library for programming hybrid systems.

Portabilitynon-portable (GHC extensions)
Stabilityprovisional
Maintainernilsson@cs.yale.edu
Safe HaskellNone

FRP.Yampa.Task

Description

Task abstraction on top of signal transformers.

Documentation

data Task a b c Source

Instances

Monad (Task a b) 

mkTask :: SF a (b, Event c) -> Task a b cSource

runTask :: Task a b c -> SF a (Either b c)Source

runTask_ :: Task a b c -> SF a bSource

taskToSF :: Task a b c -> SF a (b, Event c)Source

constT :: b -> Task a b cSource

sleepT :: Time -> b -> Task a b ()Source

snapT :: Task a b aSource

timeOut :: Task a b c -> Time -> Task a b (Maybe c)Source

abortWhen :: Task a b c -> SF a (Event d) -> Task a b (Either c d)Source

repeatUntil :: Monad m => m a -> (a -> Bool) -> m aSource

for :: Monad m => a -> (a -> a) -> (a -> Bool) -> m b -> m ()Source

forAll :: Monad m => [a] -> (a -> m b) -> m ()Source

forEver :: Monad m => m a -> m bSource