taffybar-4.0.1: A desktop bar similar to xmobar, but with more GUI
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Taffybar.Widget.Generic.ChannelWidget

Synopsis

Documentation

channelWidgetNew :: (MonadIO m, IsWidget w) => w -> BroadcastChan In a -> (a -> IO ()) -> m w Source #

Given a widget, a BroadcastChan and a function that consumes the values yielded by the channel that is in IO, connect the function to the BroadcastChan on a dedicated haskell thread.