pusher-http-haskell-1.5.1.7: Haskell client library for the Pusher HTTP API

Copyright(c) Will Sewell 2016
LicenseMIT
Maintainerme@willsewell.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.Pusher.Protocol

Description

Types representing the JSON format of Pusher messages.

There are also types for query string parameters.

Synopsis

Documentation

newtype ChannelInfo #

The possible returned channel attributes when multiple when multiple channels are queried.

Constructors

ChannelInfo 

data ChannelInfoAttributes #

Enumeration of the attributes that can be queried about a single channel.

Instances
Eq ChannelInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

Generic ChannelInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

Associated Types

type Rep ChannelInfoAttributes :: Type -> Type #

Hashable ChannelInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

ToURLParam ChannelInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelInfoAttributes = D1 (MetaData "ChannelInfoAttributes" "Network.Pusher.Protocol" "pusher-http-haskell-1.5.1.7-BDxJtMce7w7EFcJboqW02P" False) (C1 (MetaCons "ChannelUserCount" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ChannelSubscriptionCount" PrefixI False) (U1 :: Type -> Type))

newtype ChannelsInfo #

A map of channels to their ChannelInfo. The result of querying channel info from multuple channels.

data ChannelsInfoAttributes #

Enumeration of the attributes that can be queried about multiple channels.

Constructors

ChannelsUserCount 
Instances
Eq ChannelsInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

Generic ChannelsInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

Associated Types

type Rep ChannelsInfoAttributes :: Type -> Type #

Hashable ChannelsInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

ToURLParam ChannelsInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelsInfoAttributes # 
Instance details

Defined in Network.Pusher.Protocol

type Rep ChannelsInfoAttributes = D1 (MetaData "ChannelsInfoAttributes" "Network.Pusher.Protocol" "pusher-http-haskell-1.5.1.7-BDxJtMce7w7EFcJboqW02P" False) (C1 (MetaCons "ChannelsUserCount" PrefixI False) (U1 :: Type -> Type))

newtype User #

The data about a user returned when querying for users in a presence channel.

Constructors

User 

Fields

Instances
Eq User # 
Instance details

Defined in Network.Pusher.Protocol

Methods

(==) :: User -> User -> Bool #

(/=) :: User -> User -> Bool #

Show User # 
Instance details

Defined in Network.Pusher.Protocol

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

FromJSON User # 
Instance details

Defined in Network.Pusher.Protocol

newtype Users #

A list of users returned by querying for users in a presence channel.

Constructors

Users [User] 
Instances
Eq Users # 
Instance details

Defined in Network.Pusher.Protocol

Methods

(==) :: Users -> Users -> Bool #

(/=) :: Users -> Users -> Bool #

Show Users # 
Instance details

Defined in Network.Pusher.Protocol

Methods

showsPrec :: Int -> Users -> ShowS #

show :: Users -> String #

showList :: [Users] -> ShowS #

FromJSON Users # 
Instance details

Defined in Network.Pusher.Protocol

class ToURLParam a #

Types that can be serialised to a querystring parameter value.

Minimal complete definition

toURLParam