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

[ bsd3, composite, dhall, library, pandoc ] [ Propose Tags ] [ Report a vulnerability ]

Modules

[Last Documentation]

  • Text
    • Compdoc
      • Text.Compdoc.Dhall

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

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.3.0.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), compdoc (>=0.3.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 2021-08-12T13:30:59Z
Category Composite, Dhall, Pandoc
Source repo head: git clone https://gitlab.com/homotopic-tech/compdoc-dhall-decoder
Uploaded by locallycompact at 2021-07-26T07:51:03Z
Distributions
Downloads 539 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-07-29 [all 2 reports]

Readme for compdoc-dhall-decoder-0.3.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