Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data Options = Options {}
- parseDocuments :: Parser Bool
- parseQuoted :: Parser Bool
- defaultOptions :: Options
- dhallToYaml :: Options -> Maybe FilePath -> Text -> IO ByteString
- jsonToYaml :: Value -> Bool -> Bool -> ByteString
- generatedCodeNotice :: ByteString
Documentation
parseQuoted :: Parser Bool 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