moo-nad
Invocation helpers for the ReaderT-record-of-functions style.
Using a record-of-functions as the environment of some
reader-like monad is a common way of structuring Haskell
applications, somewhat resembling dependency injection in OOP.
We often want our program logic to be polymorphic over both the
concrete monad and the environment. One common solution is to
abstract the monad using @MonadReader@, and abstract the environment
using @HasX@-style typeclasses.
One minor annoyance though is that invoking the function in the
environment is often a bit cumbersome: you have to ask
the environment for the function, and then lift the result of
the function back into the reader-like monad.
This library supports a special twist on @ReaderT@-record-of-functions
style: instead of depending only on typeclasses for abstraction,
we also use a module signature. This comes with different tradeoffs.
One benefit is that we support a simpler way of invoking functions from the
environment, using a helper that takes care of both asking the environment
and lifting function results, and which works uniformly for functions of any
arity.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.0.2 | 2021-05-23 13:47 UTC | DanielDiazCarrete | +96/−3 lines, 2 filesdep ~base | |
| 0.1.0.1 | 2021-05-23 13:26 UTC | DanielDiazCarrete | +366/−0 lines, 9 filesdep +basedep +dep-tdep +moo-nad |
Dependencies of moo-nad-0.1.0.2
base >=4.11.0.0 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
dep-t >=0.4.4 && <0.5 0.4.6.0 → 0.6.8.0 newer than bounds
| 2023-01-15 23:06 UTC | 0.6.8.0 newer than bounds | +376/−290 lines, 9 filesPVP: major bump suggested |
| 2023-01-12 19:14 UTC | 0.6.7.0 newer than bounds | +213/−73 lines, 7 filesPVP: major bump suggested |
| 2023-01-08 17:26 UTC | 0.6.6.0 newer than bounds | +158/−2 lines, 6 filesPVP ok |
| 2023-01-07 15:49 UTC | 0.6.5.0 newer than bounds | +615/−261 lines, 10 filesPVP ok |
| 2022-11-08 20:54 UTC | 0.6.4.0 newer than bounds | +413/−341 lines, 4 filesPVP: major bump suggested |
showing 5 of 23 versions
mtl >=2.2 && <2.3 2.2.2 → 2.3.2 newer than bounds
| 2025-12-08 04:58 UTC | 2.3.2 newer than bounds | +112/−21 lines, 12 filesdep ~basenew-uploaderPVP: major bump suggested |
| 2022-10-31 21:28 UTC | 2.3.1 newer than bounds | +188/−33 lines, 8 filesdep ~basePVP: major bump suggested |
| 2022-05-07 20:34 UTC | 2.3 newer than bounds | +1284/−520 lines, 29 filesdep ~basedep ~transformersnew-uploaderPVP ok |
| 2018-02-24 22:15 UTC | 2.2.2 | +152/−36 lines, 14 filesdep ~basePVP: major bump suggested |
| 2014-06-02 02:22 UTC | 2.2.1 | +179/−4 lines, 8 filesdep ~basedep ~transformersPVP: major bump suggested |
showing 5 of 20 versions
tasty >=1.3.1 && <1.4 1.3.1 → 1.5.5 newer than bounds
| 2026-10-20 23:13 UTC | 1.5.5 newer than bounds | +53/−26 lines, 7 filesdep +terminal-sizePVP ok |
| 2026-03-25 20:04 UTC | 1.5.4 newer than bounds | +332/−166 lines, 22 filesdep −semigroupsPVP ok |
| 2025-01-05 19:52 UTC | 1.5.3 newer than bounds | +36/−11 lines, 3 filesdep ~containersdep ~optparse-applicativePVP: major bump suggested |
| 2024-11-03 00:34 UTC | 1.5.2 newer than bounds | +22/−5 lines, 4 filesdep ~basePVP ok |
| 2024-06-22 10:14 UTC | 1.5.1 newer than bounds | +131/−63 lines, 10 filesdep ~basePVP: major bump suggested |
showing 5 of 76 versions
tasty-hunit >=0.10.0.2 && <0.11 0.10.1 → 0.10.2
| 2024-06-22 10:14 UTC | 0.10.2 | +15/−7 lines, 4 filesPVP ok |
| 2023-09-10 00:12 UTC | 0.10.1 | +30/−52 lines, 5 filesdep ~basedep ~call-stackdep ~tastynew-uploaderPVP ok |
| 2020-12-18 09:42 UTC | 0.10.0.3 | +55/−10 lines, 4 filesdep ~basePVP ok |
| 2019-05-15 05:50 UTC | 0.10.0.2 | +38/−8 lines, 3 filesdep ~tastyPVP: major bump suggested |
| 2017-12-01 19:24 UTC | 0.10.0.1 outside bounds | +51/−29 lines, 4 filesPVP: major bump suggested |
showing 5 of 15 versions
transformers >=0.5 && <0.6 0.5.6.2 → 0.6.3.0 newer than bounds
| 2026-01-12 12:42 UTC | 0.6.3.0 newer than bounds | +28/−1 lines, 4 filesPVP: major bump suggested |
| 2025-04-06 22:39 UTC | 0.6.2.0 newer than bounds | +41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested |
| 2024-09-25 11:37 UTC | 0.6.1.2 newer than bounds | +70/−21 lines, 19 filesPVP: minor bump suggested |
| 2023-08-01 19:13 UTC | 0.6.1.1 newer than bounds | +281/−42 lines, 11 filesPVP ok |
| 2023-02-04 08:15 UTC | 0.6.1.0 newer than bounds | +64/−4 lines, 8 filesPVP ok |
showing 5 of 42 versions
Reverse dependencies
no known reverse dependencies