Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Matchers
- class HasMatchers env where
- data Matcher where
- SendMatcher :: forall a. (AWSRequest a, Typeable a, Typeable (AWSResponse a)) => (a -> Bool) -> Either Error (AWSResponse a) -> Matcher
- AwaitMatcher :: forall a. (AWSRequest a, Typeable a) => (Wait a -> a -> Bool) -> Either Error Accept -> Matcher
- withMatcher :: (MonadReader env m, HasMatchers env) => Matcher -> m a -> m a
- withMatchers :: (MonadReader env m, HasMatchers env) => [Matcher] -> m a -> m a
- matchSend :: forall m env a. (MonadIO m, MonadReader env m, HasMatchers env, Typeable a, Typeable (AWSResponse a)) => a -> m (Either Error (AWSResponse a))
- matchAwait :: forall m env a. (MonadIO m, MonadReader env m, HasMatchers env, Typeable a) => Wait a -> a -> m (Either Error Accept)
- newtype UnmatchedRequestError = UnmatchedRequestError {}
Documentation
class HasMatchers env where Source #
Define a response to provide for any matched requests
SendMatcher :: forall a. (AWSRequest a, Typeable a, Typeable (AWSResponse a)) => (a -> Bool) -> Either Error (AWSResponse a) -> Matcher | |
AwaitMatcher :: forall a. (AWSRequest a, Typeable a) => (Wait a -> a -> Bool) -> Either Error Accept -> Matcher |
withMatcher :: (MonadReader env m, HasMatchers env) => Matcher -> m a -> m a Source #
Add a Matcher
for the duration of the block
withMatchers :: (MonadReader env m, HasMatchers env) => [Matcher] -> m a -> m a Source #
Add multiple Matcher
s for the duration of the block
matchSend :: forall m env a. (MonadIO m, MonadReader env m, HasMatchers env, Typeable a, Typeable (AWSResponse a)) => a -> m (Either Error (AWSResponse a)) Source #
matchAwait :: forall m env a. (MonadIO m, MonadReader env m, HasMatchers env, Typeable a) => Wait a -> a -> m (Either Error Accept) Source #
newtype UnmatchedRequestError Source #
Instances
Exception UnmatchedRequestError Source # | |
Show UnmatchedRequestError Source # | |
Defined in Control.Monad.AWS.Matchers showsPrec :: Int -> UnmatchedRequestError -> ShowS # show :: UnmatchedRequestError -> String # showList :: [UnmatchedRequestError] -> ShowS # |