| Copyright | Copyright (C) 2025 Nikolay Yakimov |
|---|---|
| License | GNU GPL, version 2 or above |
| Maintainer | Nikolay Yakimov <root@livid.pp.ru> |
| Stability | alpha |
| Portability | portable |
| Safe Haskell | None |
| Language | GHC2021 |
Text.Pandoc.CrossRef.Internal
Description
Internal definitions, exported only for convenience. No stability guarantees.
Synopsis
- data CrossRefEnv = CrossRefEnv {
- creSettings :: Meta
- creOptions :: Options
- creReferences :: References
- newtype CrossRefM a = CrossRefM (ReaderT Meta WS a)
Documentation
data CrossRefEnv Source #
Enviromnent for CrossRefM
Constructors
| CrossRefEnv | |
Fields
| |
Bit of a weird self-recursive State monad (not MonadFix). The inner reader (function) monad takes the final state (or part of it anyway) as its input. This is all carefully choreographed to lazily converge to a fixpoint, but it is also feasible to evaluate this in two passes instead.