dhall-json
Convert between Dhall and JSON or YAML
Version on this page: | 1.3.0@rev:1 |
LTS Haskell 20.24: | 1.7.11@rev:1 |
Stackage Nightly 2023-06-08: | 1.7.11@rev:1 |
Latest on Hackage: | 1.7.12 |
BSD-3-Clause licensed by Gabriel Gonzalez
Maintained by Gabriel439@gmail.com
This version can be pinned in stack with:
dhall-json-1.3.0@sha256:7afae1a51b3081b2788497fada89004c2305616357dab9a2c727a6f7c7753d80,4887
Module documentation for 1.3.0
Depends on 16 packages(full list with versions):
Used by 2 packages in lts-14.27(full list with versions):
Use this package if you want to convert between Dhall expressions and JSON or YAML. You can use this package as a library or an executable:
See the
Dhall.JSON
module if you want to use this package as a libraryUse the
dhall-to-json
ordhall-to-yaml
programs from this package if you want an executable
The Dhall.JSON
module also contains instructions for how to use this
package
Changes
1.3.0
- BREAKING CHANGE: Change YAML/JSON encoding for
NaN
/Infinity
/-Infinity
- They are now encoded as the standard
"nan"
/"inf"
/"-inf"
representations instead ofnull
/MIN_DOUBLE/
/MAX_DOUBLE
- See: https://github.com/dhall-lang/dhall-haskell/pull/946
- They are now encoded as the standard
- BREAKING CHANGE: Isolate YAML code to one modulee
- This is a breaking change because it moves
Dhall.JSON.jsonToYaml
toDhall.YAML.jsonToYaml
- See: https://github.com/dhall-lang/dhall-haskell/pull/989/files
- This is a breaking change because it moves
- New
yaml-to-dhall
command-line utility - Add
--quoted
flag to force quoting of YAML string literals
1.2.8
- New
json-to-dhall
command-line utility --omitEmpty
now also omits empty arrays- Build against
dhall-1.22.0
- Improved error messages:
1.2.7
- Build against
dhall-1.21.0
- Support GHC 7.10.3
- Add new
--omitEmpty
flag for omitting nulls and empty records
1.2.6
- Add
--version
flag - Build against
tasty-1.2
- Add
--compact
flag todhall-to-json
- Eventually
--pretty
will become the default, so this flag provides a way for a user to preserve the old 1-line output when that happens - See: https://github.com/dhall-lang/dhall-haskell/pull/743
- Eventually
1.2.5
- Build against
dhall-1.19.0
1.2.4
- Build against
dhall-1.18.0
- New
dhall-to-yaml
--documents
flag for generating split documents - Build against
yaml-0.10.2.0
- This improves the multi-line string literals in generated YAML
- See: https://github.com/dhall-lang/dhall-json/pull/57
1.2.3
- Correctly handle nested association lists
- Increase upper bound on
dhall
dependency - Increase upper bound on
yaml
dependency
1.2.2
- Increase upper bound on
dhall
dependency - Increase upper bound on
yaml
dependency
1.2.1
- Add support for preserving sum type tags
- Sort keys when pretty-printing JSON
- Increase upper bound on
dhall
dependency
1.2.0
- BREAKING CHANGE: Add support for converting association lists to JSON records
- This changes the behavior for records with two keys named
mapKey
andmapValue
- This changes the behavior for records with two keys named
- Fix
--help
to not printExitSuccess
- Fix lower bound on
dhall
dependency - Remove
optparse-generic
dependency - Increase upper bound on
dhall
dependency
1.1.0
- BREAKING CHANGE: Build against
dhall-1.13.0
- This requires a breaking change to the type of
codeToValue
- This requires a breaking change to the type of
1.0.13
- Add
--omitNull
flag to omit null-valued fields from generated JSON records - Add
codeToValue
- Increase upper bound on
dhall
dependency
1.0.12
- Increase upper bound on
aeson
dependency - Increase upper bound on
dhall
dependency
1.0.11
- Increase upper bound on
dhall
dependency - Increase upper bound on
optparse-generic
dependency
1.0.10
- Increase upper bound on
dhall
dependency
1.0.9
- Add trailing newline to JSON output
- Remove dependency on
QuasiQuotes
1.0.8
- Increase upper bound on
dhall
dependency
1.0.7
- Add
--pretty
flag - Increase upper bound on
dhall
dependency
1.0.6
- Increase upper bound on
aeson
dependency - Increase upper bound on
dhall
dependency
1.0.5
- Increase upper bound on
optparse-generic
dependency - Increase upper bound on
trifecta
dependency
1.0.4
- Increase upper bound on
dhall
dependency
1.0.3
- Increase upper bound on
dhall
dependency
1.0.2
- Add support for translating unions by stripping the tag
- Increase upper bound on
dhall
dependency
1.0.1
- Increase upper bound on
dhall
dependency
1.0.0
- Initial release
A service provided by
FP Complete