dhall-json-1.6.2: Convert between Dhall and JSON or YAML

Safe HaskellNone
LanguageHaskell98

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