module Amazonka.Core
( module Amazonka.Types,
module Amazonka.Endpoint,
module Amazonka.Data,
module Amazonka.Pager,
module Amazonka.Waiter,
module Amazonka.Error,
(.!@),
may,
)
where
import Amazonka.Data.Base64 as Amazonka.Data
import Amazonka.Data.Body as Amazonka.Data
import Amazonka.Data.Log as Amazonka.Data
import Amazonka.Data.Sensitive as Amazonka.Data
import Amazonka.Data.Time as Amazonka.Data
import Amazonka.Endpoint
import Amazonka.Error
import Amazonka.Pager
import Amazonka.Prelude
import Amazonka.Types
import Amazonka.Waiter
infixl 7 .!@
(.!@) :: Functor f => f (Maybe a) -> a -> f a
f (Maybe a)
f .!@ :: forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
.!@ a
x = forall a. a -> Maybe a -> a
fromMaybe a
x forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> f (Maybe a)
f
may :: Applicative f => ([a] -> f b) -> [a] -> f (Maybe b)
may :: forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
may [a] -> f b
_ [] = forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a. Maybe a
Nothing
may [a] -> f b
f [a]
xs = forall a. a -> Maybe a
Just forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> [a] -> f b
f [a]
xs