deriving-trans: Derive instances for monad transformer stacks
Implementing instances for monad transformer stacks can be tedious. mtl defines each instance for each transfomer, but this can be avoided.
Elevator
let's you access instances of the underlying monad of a transformer.
Composing transformers with ComposeT
brings instances into scope during the
initialization of a transformer stack.
Elevator
can be used with DerivingVia to select a specific transformer to
derive instances for a transformer stack.
ComposeT
composes transformers and accumulates instances in a transformer
stack.
Modules
[Index] [Quick Jump]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
exceptions | Implement instances for exception's type classes. | Enabled |
logict | Implement instances for | Enabled |
monad-logger | Implement instances for | Enabled |
mtl | Implement instances for mtl's type classes. | Enabled |
primitive | Implement instances for | Enabled |
random | Implement instances for random's type classes. | Enabled |
resourcet | Implement instances for | Enabled |
unliftio | Implement instances for | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- deriving-trans-0.9.1.0.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.2.0.0, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.4.0.0, 0.5.0.0, 0.5.0.1, 0.5.1.0, 0.5.2.0, 0.6.0.0, 0.6.1.0, 0.7.0.0, 0.8.0.0, 0.8.1.0, 0.9.0.0, 0.9.1.0 (info) |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.16.1.0 && <5), exceptions (>=0.10.5), logict (>=0.8.0.0), monad-control (>=1.0.3), monad-control-identity (>=0.2.0.0), monad-logger (>=0.3.38), mtl (>=2.3), primitive (>=0.7.1.0), random (>=1.2), resourcet (>=1.2), transformers (>=0.6), transformers-base (>=0.4.6), unliftio-core (>=0.2.0.0) [details] |
License | BSD-3-Clause |
Author | Felix Springer |
Maintainer | felixspringer149@gmail.com |
Category | Control |
Home page | https://github.com/jumper149/deriving-trans |
Bug tracker | https://github.com/jumper149/deriving-trans/issues |
Uploaded | by jumper149 at 2023-07-11T22:21:33Z |
Distributions | LTSHaskell:0.9.1.0, NixOS:0.9.1.0, Stackage:0.9.1.0 |
Downloads | 1437 total (33 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |