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
The command dhall format removes backquotes when it thinks backquotes are unnecessary. But when backquotes are used for builtin labels like Some and Type, sometimes removing the backquotes produces incorrect code.
Minimal example:
letT=<Some|Type>let t :T=T.`Some`
let x :T=T.`Type`
inTrue
Fixes#2601
According to the standard the `Some` needs to be escaped when used as
a field accessor because the `any-label` grammar rule kicks in, which
specifically does not permit `Some`.
The command
dhall format
removes backquotes when it thinks backquotes are unnecessary. But when backquotes are used for builtin labels likeSome
andType
, sometimes removing the backquotes produces incorrect code.Minimal example:
Save this file as
test.dhall
.The file after formatting looks like this:
The backquotes in
Some
andType
have been removed. This produces incorrect code that does not parse.Expected behavior: Quotes should not be removed with
Some
. (It's fine to remove them forType
though.)The text was updated successfully, but these errors were encountered: