-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple push support for pushbullet -- -- Pushbullet support for sending simple push notifications through -- pushbullet @package pushbullet @version 0.0.0 module Network.Pushbullet.Types type Title = Text type Body = Text type FileName = Text type FileType = Text type FileUrl = Text newtype DeviceId DeviceId :: Text -> DeviceId [unDeviceId] :: DeviceId -> Text data PushBullet -- | A note with a title and body PushNote :: Title -> Body -> PushBullet -- | A link with a message and title PushLink :: Title -> Body -> Text -> PushBullet -- | A File with a message, name, type, and url PushFile :: Body -> FileName -> FileType -> FileUrl -> PushBullet -- | Generate the PushSecret from a ByteString pushSecret :: ByteString -> PushSecret instance Data.String.IsString Network.Pushbullet.Types.DeviceId instance GHC.Show.Show Network.Pushbullet.Types.DeviceId instance GHC.Classes.Eq Network.Pushbullet.Types.DeviceId instance Data.Aeson.Types.ToJSON.ToJSON Network.Pushbullet.Types.PushBullet module Network.Pushbullet -- | Send a push to a given device if device is sendPush :: PushSecret -> Maybe DeviceId -> PushBullet -> IO ()