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:
Gabriel Gonzalez 2019-09-24 19:34:51 -07:00 committed by mergify[bot]
parent 7080883af3
commit 1682c4c5f2

View File

@ -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 =