valiant-mtl: MTL-style adapter for valiant
Provides valiant database operations as MTL-style functions that work in
any monad with MonadReader pool m and MonadIO m constraints. Unlike
the built-in Valiant.Monad (which is ReaderT Pool IO), this adapter
composes with arbitrary monad stacks.
import Valiant.Mtl myApp :: (HasPool m, MonadIO m) => m [User] myApp = do users <- fetchAllMtl listUsers () pure users
[Skip to Readme]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| werror | Enable -Werror for development builds. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- valiant-mtl-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.17 && <5), mtl (>=2.2 && <2.4), pg-wire (>=0.2 && <0.3), time (>=1.12 && <1.15), transformers (>=0.6 && <0.7), valiant (>=0.1 && <0.2), vector (>=0.12 && <0.14) [details] |
| Tested with | ghc ==9.10.3 |
| License | BSD-3-Clause |
| Author | Josh Burgess |
| Maintainer | joshburgess.webdev@gmail.com |
| Uploaded | by joshburgess at 2026-04-30T12:29:07Z |
| Category | Database |
| Home page | https://github.com/joshburgess/valiant |
| Bug tracker | https://github.com/joshburgess/valiant/issues |
| Source repo | head: git clone https://github.com/joshburgess/valiant(adapters/valiant-mtl) |
| Distributions | |
| Downloads | 9 total (9 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-04-30 [all 1 reports] |