dhall-json-1.7.5: Convert between Dhall and JSON or YAML
Safe HaskellNone
LanguageHaskell2010

Dhall.JSON.Yaml

Description

Convert Dhall to YAML via JSON

Since JSON is only a subset of YAML, the functionality offered here is more limited than what the dhall-yaml package can offer.

Synopsis

Documentation

dhallToYaml Source #

Arguments

:: Options 
-> Maybe FilePath

The source file path. If no path is given, imports are resolved relative to the current directory.

-> Text

Input text.

-> IO ByteString 

Convert a piece of Text carrying a Dhall inscription to an equivalent YAML ByteString

jsonToYaml :: Value -> Bool -> Bool -> ByteString Source #

Transform json representation into yaml

generatedCodeNotice :: ByteString Source #

The notice added to the top of a generated file when enabling the --generated-comment