dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
908 stars 211 forks source link

Disallow `with` changing `Optional` record type #2501

Closed Gabriella439 closed 1 year ago

Gabriella439 commented 1 year ago

See: https://github.com/dhall-lang/dhall-lang/pull/1332

The standard already required this, but the Haskell implementation was not correctly conforming to the standard. Fixing this not only simplifies the Haskell code but also makes the code more greatly resemble the corresponding standard judgement.