dhall-haskell icon indicating copy to clipboard operation
dhall-haskell copied to clipboard

Add support for accessing/projecting record type fields

Open Gabriella439 opened this issue 1 year ago • 3 comments
trafficstars

Gabriella439 avatar Dec 03 '23 04:12 Gabriella439

What are the conflicts in the git submodule dhall/dhall-lang? Should this branch get updated with the latest dhall-lang?

winitzki avatar Jun 22 '25 20:06 winitzki

This PR fails with the corner case that I was describing in the discussion here:

⊢ { a : Bool, b : Text }.{}

{=}

⊢ {  }.{}

{=}

If an empty field selection is applied to a literal record type, the result must be {}. In all other cases, the result must be {=}.

winitzki avatar Jun 23 '25 08:06 winitzki

If this branch is too stale, I could prepare another branch with just the code changes (and no changes in the dhall/dhall-lang submodule).

winitzki avatar Jun 23 '25 09:06 winitzki