mattermost-api-50200.5.0: Client API for Mattermost chat system

Safe HaskellNone
LanguageHaskell2010

Network.Mattermost.Types.Internal

Description

The types defined in this module are exported to facilitate efforts such as QuickCheck and other instrospection efforts, but users are advised to avoid using these types wherever possible: they can be used in a manner that would cause significant disruption and may be subject to change without being reflected in the mattermost-api version.

Synopsis

Documentation

data Token Source #

Constructors

Token String 
Instances
Eq Token Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Methods

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

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

Ord Token Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Methods

compare :: Token -> Token -> Ordering #

(<) :: Token -> Token -> Bool #

(<=) :: Token -> Token -> Bool #

(>) :: Token -> Token -> Bool #

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

max :: Token -> Token -> Token #

min :: Token -> Token -> Token #

Read Token Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Show Token Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

autoCloseToHeader :: AutoClose -> [Header] Source #

We return a list of headers so that we can treat the headers like a monoid.

data MMConn Source #

Constructors

MMConn 
Instances
Stream MMConn Source #

This instance allows us to use simpleHTTP from Stream with connections from the connection package.

Instance details

Defined in Network.Mattermost.Types.Internal

dropTrailingChar :: ByteString -> ByteString Source #

HTTP ends newlines with rn sequence, but the connection package doesn't know this so we need to drop the r after reading lines. This should only be needed in your compatibility with the HTTP library.