skype4hs-0.0.0.0: Skype Desktop API binding for Haskell

Safe HaskellNone

Network.Skype.Core

Synopsis

Documentation

class Monad m => MonadSkype m whereSource

Provides the DSL for Skype API.

Methods

sendCommand :: Command -> m ()Source

Sends the command message to the Skype instance.

getNotificationChan :: m (TChan Notification)Source

Gets the notification channel of Skype from the event loop.

data SkypeConfig Source

Constructors

SkypeConfig 

Fields

skypeTimeout :: Int
 

Instances

runSkype :: (Monad m, MonadSkype (ReaderT connection m)) => connection -> SkypeT (ReaderT connection m) a -> m (Either SkypeError a)Source

runSkypeWith :: (Monad m, MonadSkype (ReaderT connection m)) => connection -> SkypeConfig -> SkypeT (ReaderT connection m) a -> m (Either SkypeError a)Source

onNotification :: (MonadIO m, MonadSkype m) => (Notification -> m a) -> m ()Source