matrix-bot-0.2.0: Matrix multipurpose bot
Safe HaskellNone
LanguageHaskell2010

MatrixBot.MatrixApi.Client

Documentation

data MatrixApiClient Source #

Constructors

MatrixApiClient 

Fields

  • runMatrixApiClient :: forall api (m :: Type -> Type) a. (MonadIO m, MonadFail m, Show a, MonadLogger m, HasClient (Free ClientF) api, HasClient ClientM api) => Proxy api -> (forall (clientM :: Type -> Type). HasClient clientM api => Client clientM api -> clientM a) -> m (Either ClientError a)
     
  • runMatrixApiClientDoNotShowReqBody :: forall api (m :: Type -> Type) a. (MonadIO m, MonadFail m, Show a, MonadLogger m, HasClient (Free ClientF) api, HasClient ClientM api) => Proxy api -> (forall (clientM :: Type -> Type). HasClient clientM api => Client clientM api -> clientM a) -> m (Either ClientError a)

    Variant that doesn’t log request body that may contain passwords or streamed byte strings

  • runMatrixApiClient' :: forall api (m :: Type -> Type) a. (MonadIO m, MonadFail m, Show a, MonadThrow m, MonadLogger m, HasClient (Free ClientF) api, HasClient ClientM api) => Proxy api -> (forall (clientM :: Type -> Type). HasClient clientM api => Client clientM api -> clientM a) -> m a
     
  • runMatrixApiClientDoNotShowReqBody' :: forall api (m :: Type -> Type) a. (MonadIO m, MonadFail m, Show a, MonadThrow m, MonadLogger m, HasClient (Free ClientF) api, HasClient ClientM api) => Proxy api -> (forall (clientM :: Type -> Type). HasClient clientM api => Client clientM api -> clientM a) -> m a

    Variant that doesn’t log request body that may contain passwords or streamed byte strings

newtype RequestOptions Source #

Constructors

RequestOptions 

Fields

mkMatrixApiClient :: (MonadIO m, MonadThrow m, MonadLogger m) => RequestOptions -> HomeServer -> m MatrixApiClient Source #