amazonka-mtl: MTL-style type-class and deriving-via newtypes for Amazonka
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- [missing-upper-bounds] On library, these packages miss upper bounds: - amazonka - amazonka-core - conduit - lens - monad-logger - mtl - resourcet - unliftio-core Please add them. There is more information at https://pvp.haskell.org/
This package allows incorporation of AWS actions into any MTL-style function,
import Amazonka.Data.Text (ToText(..)) import Amazonka.S3.ListObjects import Amazonka.S3.Types.Object import Blammo.Logging import Conduit import Control.Lens hiding ((.=)) import Control.Monad.AWS as AWS someAction :: ( MonadIO m , MonadLogger m , MonadAWS m , MonadReader env m , HasSettings env ) => m () someAction = do Settings {..} <- view settingsL keys <- runConduit $ paginate (newListObjects settingsBucketName) .| concatMapC (^. listObjectsResponse_contents) .| concatC .| mapC (^. object_key . to toText) .| iterMC (\k -> logDebug $ k :# []) .| sinkList logInfo $ "Bucket contents" :# ["keys" .= keys]
This package also provides a number of options for execution:
Through a concrete transformer: Control.Monad.AWS.EnvT
Through your own reader env and deriving-via: Control.Monad.AWS.ViaReader
This package also provides mechanisms for mocking AWS in tests:
Through a concrete transformer: Control.Monad.AWS.MockT
Through your own reader env and deriving-via: Control.Monad.AWS.ViaMock
Please see individual module documentation for all the details.
[Skip to Readme]
Properties
Versions | 0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.2, 0.1.1.3 |
---|---|
Change log | CHANGELOG.md |
Dependencies | amazonka (>=2.0), amazonka-core (>=2.0), base (>=4.14.3.0 && <5), conduit (>=1.3.4.2), lens (>=4.19.2), monad-logger (>=0.3.36), mtl (>=2.2.2), resourcet (>=1.2.4.3), unliftio-core (>=0.2.0.1) [details] |
License | MIT |
Author | |
Maintainer | Freckle Education |
Category | Utils |
Home page | https://github.com/freckle/amazonka-mtl#readme |
Bug tracker | https://github.com/freckle/amazonka-mtl/issues |
Source repo | head: git clone https://github.com/freckle/amazonka-mtl |
Uploaded | by PatrickBrisbin at 2025-06-18T13:37:11Z |
Modules
- Control
- Monad
- Control.Monad.AWS
- Control.Monad.AWS.Class
- Control.Monad.AWS.EnvT
- Control.Monad.AWS.Matchers
- Control.Monad.AWS.MockT
- Control.Monad.AWS.ViaMock
- Control.Monad.AWS.ViaReader
- Control.Monad.AWS
- Monad
Downloads
- amazonka-mtl-0.1.1.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees