Closed haitlahcen closed 5 years ago
@haitlahcen: I think you might be using a version of dhall-to-yaml
that was built against an older version of dhall
. The example you gave works for me for both dhall-1.18
and dhall-json-1.2.4
:
$ dhall <<< './example.dhall'
{ a = 1 }
$ dhall-to-yaml <<< './example.dhall'
a: 1
I just noticed that my build through nix was not for the latest, was running dhall-json 1.2.3, sorry for that ^^
@haitlahcen: No worries at all :slightly_smiling_face:
Dhall
1.18
introduced kind-polymorphism thanks to aSort
constant aboveKind
.Generating
yaml|json
from a value annotated by fixing aSort
contained by a record throws an errortest.dhall
dhall <<< ./test.dhall
dhall-to-yaml <<< ./test.dhall
Extracting
Y
fromA
make the above command working. Am I missing something or this behavior was not expected ?