Open
Description
With dhall 1.41.2, it used to be possible to do the following:
(Some { x = 1 }) with ?.x = 2
=> Some { x = 2 }
(Some { x = 1 }) with ?.x = "hello"
=> Some { x = "hello" }
With dhall 1.42.1, a restriction was added forbidding a with
expression from changing the type of an optional (it is a breaking change that was not announced in the changelog). This restriction is buggy and both the above expressions fail to evaluate with:
Error: ❰with❱ cannot change the type of an ❰Optional❱ value
Metadata
Metadata
Assignees
Labels
No labels
Activity