reactive-haskell-0.0.1: minimal fork of io-reactive

CopyrightAndy Gill (??-2008), Heather Cynede (2014)
LicenseBSD3
Safe HaskellSafe-Inferred
LanguageHaskell98

Control.Concurrent.Reactive

Description

|

Documentation

type Action s = s -> IO s Source

type Request s a = s -> IO (s, a) Source

reactiveObjectIO :: forall state object. state -> (ThreadId -> (forall r. Request state r -> IO r) -> (Action state -> IO ()) -> IO () -> object) -> IO object Source

type Sink a = a -> IO () Source

pauseIO :: (a -> Sink b -> IO ()) -> a -> IO b Source

reactiveIO :: (a -> IO b) -> a -> Sink b -> IO () Source