You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m currently working on creating bindings for nix library functions in dhall so that you can write more of your NixOS configuration in dhall and I have run into some friction surrounding the merge operator, as it is not translated correctly.
letOptional/default=./default.dhall
sha256:5bd665b0d6605c374b3c4a7e2e2bd3b9c1e39323d41441149ed5e30d86e889ad
in λ(v :OptionalNatural) →Optional/defaultNatural0 v
is translated as
v:
v{None=0;Some=_: _;}
and not as the working
v: ifv!=nullthen(_: _)velse0
It generates the same code as normal unions, which is inappropriate because Some v is mapped to v and None t is mapped to null.
The text was updated successfully, but these errors were encountered:
DarkKirb
added a commit
to DarkKirb/dhall-haskell
that referenced
this issue
Sep 6, 2022
I’m currently working on creating bindings for nix library functions in dhall so that you can write more of your NixOS configuration in dhall and I have run into some friction surrounding the merge operator, as it is not translated correctly.
is translated as
and not as the working
It generates the same code as normal unions, which is inappropriate because
Some v
is mapped tov
andNone t
is mapped tonull
.The text was updated successfully, but these errors were encountered: