GrowlNotify-0.4: Notification utility for Growl.

Network.GrowlNotify

Description

A network notification utility to work with Growl http://growl.info/.

An application must register itself by sending a registrationPacket. Then, to send a notification, send a notificationPacket. Any packet must have an md5sum tacked on to the end before being sent.

Synopsis

Documentation

registrationPacketSource

Arguments

:: String

The name of this application

-> [String]

A list of notifications

-> ByteString

The packet

register this application and its notification with growl | any notifications will be on by default

notificationPacketSource

Arguments

:: Bool

True iff the notification should be sticky

-> String

The name of this application

-> String

The notification name

-> String

The title of this notification

-> String

The notification text

-> ByteString

The packet

Create a notification packet

addMD5SumSource

Arguments

:: String

The password

-> ByteString

The packet (from notificationPacket or registrationPacket)

-> ByteString

The message with appended md5sum, ready for sendMessage

Tack on the md5sum to the end of the message, with a (possibly empty) password

sendMessageSource

Arguments

:: String

The server (an IP address or hostname)

-> ByteString

The message (with md5sum) to send

-> IO () 

Send the packet