mattermost-api-40900.1.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

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.

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.