Safe Haskell | Safe-Inferred |
---|
- data Client m = Client (Maybe (Send m)) [(Receive m, Send m)] (Maybe (Receive m))
- client :: Monad m => Client m -> (Bool, Pipe (Either Success ByteString) ByteString m ())
- data Server m = Server (Maybe (Receive m)) [(Send m, Receive m)] (Maybe (Send m))
- server :: Monad m => Server m -> (Bool, Pipe ByteString (Either Success ByteString) m ())
- data Success = Success (Maybe ByteString)
- class SaslState s where
- getSaslState :: s -> [(ByteString, ByteString)]
- putSaslState :: [(ByteString, ByteString)] -> s -> s
- type Send m = m ByteString
- type Receive m = ByteString -> m ()
- class Error e => SaslError e where
- fromSaslError :: SaslErrorType -> ByteString -> e
- data SaslErrorType
Main
client :: Monad m => Client m -> (Bool, Pipe (Either Success ByteString) ByteString m ())Source
server :: Monad m => Server m -> (Bool, Pipe ByteString (Either Success ByteString) m ())Source
Types and Classes
getSaslState :: s -> [(ByteString, ByteString)]Source
putSaslState :: [(ByteString, ByteString)] -> s -> sSource
type Send m = m ByteStringSource
type Receive m = ByteString -> m ()Source
Error
class Error e => SaslError e whereSource
fromSaslError :: SaslErrorType -> ByteString -> eSource