herb-0.1.0.0: Accessible format for structured data serialization
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Herb.Pretty

Description

This provides herbDoc (and herbsDoc) that convert Herb (and foldable containers thereof) into Doc.

Synopsis

Documentation

herbDoc :: Herb -> Doc Source #

Convert a Herb structure into Doc.

herbsDoc :: Foldable f => f Herb -> Doc Source #

Convert a foldable container of Herb structures into Doc from Text.PrettyPrint, concatenating them vertically.

prettyHerb :: Herb -> String Source #

Directly produce a pretty String representation of Herb using the default rendering style of Text.PrettyPrint. To render using a custom style, run renderStyle with appropriate parameters.

prettyHerbs :: Foldable f => f Herb -> String Source #

Like prettyHerb but for foldable containers. This adds the final newline (which is missing in the default rendering by Text.PrettyPrint.