Compile merging Optionals correctly in dhall-nix#2446
Compile merging Optionals correctly in dhall-nix#2446DarkKirb wants to merge 1 commit intodhall-lang:mainfrom
Conversation
This is done by checking the type of the merge input, and emitting special code for Optionals. This commit fixes dhall-lang#2443
|
Sorry for the long delay in responding to this. I think there is a simpler approach that doesn't require threading through the context or inferring the type of any expressions. Rather, what you can do is to check if the argument to the I can also implement my suggestion myself if you want, especially given how delayed my review was |
|
#2443 is only an issue for merges where the expression cannot be reduced to a form some cases like |
|
What about in the general case translating the |
This is done by checking the type of the merge input, and emitting special code for Optionals.
This commit fixes #2443.
Please let me know if i did something poorly, i do not know haskell.