compdoc-dhall-decoder: Allows you to write FromDhall instances for Compdoc

[ bsd3, dhall-pandoc, library ] [ Propose Tags ]

[Skip to Readme]
Versions [faq],
Change log
Dependencies base (>=4.7 && <5), compdoc (>=, composite-aeson, composite-base (>=, dhall, either, pandoc, text [details]
License BSD-3-Clause
Author Daniel Firth
Revised Revision 1 made by locallycompact at 2020-11-06T12:46:57Z
Category dhall pandoc
Source repo head: git clone
Uploaded by locallycompact at 2020-11-06T12:45:00Z
Distributions NixOS:
Downloads 117 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-11-06 [all 1 reports]


[Index] [Quick Jump]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for compdoc-dhall-decoder-

[back to package description]


This module allows you to decode a Compdoc value from markdown.

You should use newtypes like so:

newtype MyDoc = MyDoc (Record (Compdoc '[]))
  deriving stock (Eq, Show, Generic)

instance D.FromDhall MyDoc where
  autoWith options = fmap MyDoc $ compdocDecoder def (recordJsonFormat RNil) options