ramus-0.0.1: Elm signal system for Haskell

Safe HaskellNone
LanguageHaskell2010

Ramus.Channel

Synopsis

Documentation

newtype Channel a Source #

Constructors

Channel (Signal a) 

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

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

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

Sends a value to a given channel.

subscribe :: Channel a -> Signal a Source #

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