amazonka-mtl: MTL-style type-class and deriving-via newtypes for Amazonka
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]
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
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.1.1.1, 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-24T14:03:01Z |
Distributions | NixOS:0.1.1.0 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 152 total (8 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2025-06-24 [all 2 reports] |