Fix inferred type for record projection (#1342)
This ensures that record projection correctly sorts the fields in the inferred type This fixes the regression test in https://github.com/dhall-lang/dhall-lang/pull/750
This commit is contained in:
parent
7080883af3
commit
1682c4c5f2
|
@ -1130,7 +1130,7 @@ infer typer = loop
|
|||
|
||||
let adapt = VRecord . Dhall.Map.fromList
|
||||
|
||||
fmap adapt (traverse process (Dhall.Set.toList xs))
|
||||
fmap adapt (traverse process (Dhall.Set.toList (Dhall.Set.sort xs)))
|
||||
|
||||
_ -> do
|
||||
let text =
|
||||
|
|
Loading…
Reference in New Issue
Block a user