ramus-0.1.2: Elm signal system for Haskell

Safe HaskellNone
LanguageHaskell2010

Ramus.Channel

Synopsis

Documentation

newtype Channel a #

Constructors

Channel (Signal a) 

channel :: a -> IO (Channel a) #

Creates a channel, which allows you to feed arbitrary values into a signal.

send :: Channel a -> a -> IO () #

Sends a value to a given channel.

subscribe :: Channel a -> Signal a #

Takes a channel and returns a signal of the values sent to it.