yamlparse-applicative-0.1.0.2: Declaritive configuration parsing with free docs

Safe HaskellNone
LanguageHaskell2010

YamlParse.Applicative.Pretty

Synopsis

Documentation

data Colour Source #

Constructors

Yellow 
Gray 
Red 
Blue 
White 

prettySchemaDoc :: forall a. YamlSchema a => Text Source #

Render pretty documentation about the yamlSchema of a type

This is meant for humans. The output may look like YAML but it is not.

prettyParserDoc :: Parser i o -> Text Source #

Render pretty documentation about a parser

This is meant for humans. The output may look like YAML but it is not.

prettyColourisedSchemaDoc :: forall a. YamlSchema a => Text Source #

Render pretty colourised documentation about the yamlSchema of a type

This is meant for humans. The output may look like YAML but it is not.

prettyColourisedParserDoc :: Parser i o -> Text Source #

Render pretty colourised documentation about a parser

This is meant for humans. The output may look like YAML but it is not.

prettySchema :: Schema -> Text Source #

Render a schema as pretty text.

This is meant for humans. The output may look like YAML but it is not.

prettyColourisedSchema :: Schema -> Text Source #

Render a schema as pretty and colourised text.

This is meant for humans. The output may look like YAML but it is not.

newtype Comments Source #

A list of comments

Constructors

Comments 

Fields

comment :: Text -> Comments Source #

A raw text as comments

schemaDoc :: Schema -> Doc Colour Source #

Prettyprint a Schema