Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- data Token = Token String
- getTokenString :: Token -> String
- data AutoClose
- autoCloseToHeader :: AutoClose -> [Header]
- data MMConn = MMConn {}
- closeMMConn :: MMConn -> IO ()
- newMMConn :: Connection -> IO MMConn
- isConnected :: MMConn -> IO Bool
- maxLineLength :: Int
- dropTrailingChar :: ByteString -> ByteString
- data ConnectionType
- data ConnectionData = ConnectionData {}
- newtype ServerBaseURL = ServerBaseURL Text
- connectionDataURL :: ConnectionData -> ServerBaseURL
Documentation
getTokenString :: Token -> String Source #
autoCloseToHeader :: AutoClose -> [Header] Source #
We return a list of headers so that we can treat the headers like a monoid.
closeMMConn :: MMConn -> IO () Source #
maxLineLength :: Int Source #
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.
data ConnectionType Source #
ConnectHTTPS Bool | Boolean is whether to require trusted certificate |
ConnectHTTP | Make an insecure connection over HTTP |
Instances
Read ConnectionType Source # | |
Defined in Network.Mattermost.Types.Internal readsPrec :: Int -> ReadS ConnectionType # readList :: ReadS [ConnectionType] # | |
Show ConnectionType Source # | |
Defined in Network.Mattermost.Types.Internal showsPrec :: Int -> ConnectionType -> ShowS # show :: ConnectionType -> String # showList :: [ConnectionType] -> ShowS # | |
Eq ConnectionType Source # | |
Defined in Network.Mattermost.Types.Internal (==) :: ConnectionType -> ConnectionType -> Bool # (/=) :: ConnectionType -> ConnectionType -> Bool # |
data ConnectionData Source #
newtype ServerBaseURL Source #
Instances
Show ServerBaseURL Source # | |
Defined in Network.Mattermost.Types.Internal showsPrec :: Int -> ServerBaseURL -> ShowS # show :: ServerBaseURL -> String # showList :: [ServerBaseURL] -> ShowS # | |
Eq ServerBaseURL Source # | |
Defined in Network.Mattermost.Types.Internal (==) :: ServerBaseURL -> ServerBaseURL -> Bool # (/=) :: ServerBaseURL -> ServerBaseURL -> Bool # |