dhall-json

Convert between Dhall and JSON or YAML

Version on this page:1.7.11@rev:1
LTS Haskell 21.25:1.7.11@rev:1
Stackage Nightly 2023-06-21:1.7.11@rev:1
Latest on Hackage:1.7.12@rev:3

See all snapshots dhall-json appears in

BSD-3-Clause licensed by Gabriella Gonzalez
Maintained by [email protected]
This version can be pinned in stack with:dhall-json-1.7.11@sha256:be0e259e141f61034ae3d6e4e794b5f849c1ef3b5f565c927d4a1e19d8b3ba54,4517

Module documentation for 1.7.11

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 or Dhall.JSONToDhall modules if you want to use this package as a library

  • Use the dhall-to-json, dhall-to-yaml, or json-to-dhall programs from this package if you want an executable

The Dhall.JSON and Dhall.JSONToDhall modules also contains instructions for how to use this package

Changes

1.7.11

1.7.10

1.7.9

1.7.8

1.7.7

  • Build against dhall-1.39.0

1.7.6

1.7.5

  • Build against dhall-1.38.0, tasty-1.4, and tasty-silver-3.2

1.7.4

  • Build against dhall-1.37.0

1.7.3

1.7.2

1.7.1

1.7.0

1.6.4

1.6.3

1.6.2

  • Fix dhall-json for new Prelude.JSON.Type
    • Version 13.0.0 of the Prelude caused the JSON type to change, which broke dhall-json’s support for that type
    • This release fixes that (and still supports the old JSON type)

1.6.1

1.6.0

1.5.0

1.4.1

1.4.0

1.3.0

1.2.8

1.2.7

1.2.6

1.2.5

1.2.4

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 and mapValue
  • Fix --help to not print ExitSuccess
  • 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

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