amazonka-mtl-0.1.1.0: MTL-style type-class and deriving-via newtypes for Amazonka
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.AWS.Matchers

Synopsis

Documentation

data Matchers Source #

Since: 0.1.0.0

Instances

Instances details
HasMatchers Matchers Source #

Since: 0.1.0.0

Instance details

Defined in Control.Monad.AWS.Matchers

Monoid Matchers Source # 
Instance details

Defined in Control.Monad.AWS.Matchers

Semigroup Matchers Source # 
Instance details

Defined in Control.Monad.AWS.Matchers

Monad m => MonadReader Matchers (MockT m) Source # 
Instance details

Defined in Control.Monad.AWS.MockT

Methods

ask :: MockT m Matchers #

local :: (Matchers -> Matchers) -> MockT m a -> MockT m a #

reader :: (Matchers -> a) -> MockT m a #

class HasMatchers env where Source #

Since: 0.1.0.0

Instances

Instances details
HasMatchers Matchers Source #

Since: 0.1.0.0

Instance details

Defined in Control.Monad.AWS.Matchers

data Matcher where Source #

Define a response to provide for any matched requests

Constructors

SendMatcher :: forall a. (AWSRequest a, Typeable a, Typeable (AWSResponse a)) => (a -> Bool) -> Either Error (AWSResponse a) -> Matcher

Matches calls to send where the given predicate holds

Since: 0.1.0.0

AwaitMatcher :: forall a. (AWSRequest a, Typeable a) => (Wait a -> a -> Bool) -> Either Error Accept -> Matcher

Matches calls to await where the given predicate holds

Since: 0.1.0.0

withMatcher :: (MonadReader env m, HasMatchers env) => Matcher -> m a -> m a Source #

Add a Matcher for the duration of the block

Since: 0.1.0.0

withMatchers :: (MonadReader env m, HasMatchers env) => [Matcher] -> m a -> m a Source #

Add multiple Matchers for the duration of the block

Since: 0.1.0.0

matchSend :: forall m env a. (MonadIO m, MonadReader env m, HasMatchers env, Typeable a, Typeable (AWSResponse a)) => a -> m (Either Error (AWSResponse a)) Source #

Since: 0.1.0.0

matchAwait :: forall m env a. (MonadIO m, MonadReader env m, HasMatchers env, Typeable a) => Wait a -> a -> m (Either Error Accept) Source #

Since: 0.1.0.0