yaml-0.10.1.1: Support for parsing and rendering YAML documents.

Safe HaskellNone
LanguageHaskell2010

Data.Yaml.Pretty

Description

Prettier YAML encoding.

Since: yaml-0.8.13

Synopsis

Documentation

encodePretty :: ToJSON a => Config -> a -> ByteString Source #

Configurable encode.

Since: yaml-0.8.13

data Config Source #

Since: yaml-0.8.13

getConfCompare :: Config -> Text -> Text -> Ordering Source #

Since: yaml-0.8.13

setConfCompare :: (Text -> Text -> Ordering) -> Config -> Config Source #

Sets ordering for object keys

Since: yaml-0.8.13

getConfDropNull :: Config -> Bool Source #

Since: yaml-0.8.24

setConfDropNull :: Bool -> Config -> Config Source #

Drop entries with Null value from objects, if set to True

Since: yaml-0.8.24

defConfig :: Config Source #

The default configuration: do not sort objects or drop keys

Since: yaml-0.8.13