mdoc: Parser and pretty-printer for the mdoc(7) language
This library parses, represents, pretty-prints, or generates man-page content using the mdoc(7) language.
To parse a man-page and work with its data in a structured way,
Use
parseMdocBytesfrom the Mdoc.Input module
To pretty-print parsed (or constructed) man-page data,
Use
prettyMdocfrom theMdocmodule andputDocin Mdoc.Gen
To generate a man-page from a supported parser library, check the appropriate integration module,
envparse-- Env.Mdocopt-env-conf-- OptEnvConf.Mdocoptparse-applicative-- Options.Applicative.Mdoc
An example and screenshots can be seen at the project homepage.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- mdoc-0.1.0.3.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, 0.1.0.2, 0.1.0.3 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.2.3.0), autodocodec-schema (>=0.2.0.1), base (>=4.19.2.0 && <5), bytestring (>=0.12.1.0), containers (>=0.6.8), Diff (>=0.5), envparse (>=0.6.0), extra (>=1.7.16), file-embed (>=0.0.16.0), filepath (>=1.4.301.0), generic-optics (>=2.2.1.0), mdoc, megaparsec (>=9.6.1), mtl (>=2.3.1), opt-env-conf (>=0.8.0.0), optics (>=0.4.2.1), optparse-applicative (>=0.18.1.0), prettyprinter (>=1.7.1), prettyprinter-ansi-terminal (>=1.1.3), text (>=2.1.1), time (>=1.12.2), zlib (>=0.7.1.0) [details] |
| License | AGPL-3.0-only |
| Author | |
| Maintainer | Pat Brisbin |
| Uploaded | by PatrickBrisbin at 2026-09-24T11:38:53Z |
| Home page | https://codeberg.org/pbrisbin/mdoc#readme |
| Bug tracker | https://codeberg.org/pbrisbin/mdoc/issues |
| Source repo | head: git clone https://codeberg.org/pbrisbin/mdoc |
| Distributions | |
| Executables | mdoc-dump |
| Downloads | 2 total (2 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-09-24 [all 1 reports] |


