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

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

[Skip to Readme]
Versions [faq] 0.1.0.0, 0.2.0.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), compdoc (>=0.2.0.0), composite-aeson, composite-base (>=0.7.4.0), dhall, either, pandoc, text [details]
License BSD-3-Clause
Copyright dan.firth@homotopic.tech
Author Daniel Firth
Maintainer dan.firth@homotopic.tech
Revised Revision 1 made by locallycompact at 2020-11-06T12:46:57Z
Category dhall pandoc
Source repo head: git clone https://gitlab.com/homotopic-tech/compdoc-dhall-decoder
Uploaded by locallycompact at 2020-11-06T12:45:00Z
Distributions NixOS:0.2.0.0
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]

Modules

[Index] [Quick Jump]

Downloads

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-0.2.0.0

[back to package description]

compdoc-dhall-decoder

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