Skip to content

Commit

Permalink
Small optimizations in toMap
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakobi committed Jul 17, 2019
1 parent 8e974bb commit c23cff8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dhall/src/Dhall/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1931,14 +1931,12 @@ isNormalized e0 = loop (denote e0)
Nothing -> True
_ -> True
_ -> True
ToMap x t -> loop x && all loop t &&
case x of
RecordLit _ -> False
_ -> True
Field r _ -> loop r &&
case r of
RecordLit _ -> False
_ -> True
ToMap x t -> case x of
RecordLit _ -> False
_ -> loop x && all loop t
Field r _ -> case r of
RecordLit _ -> False
_ -> loop r
Project r p -> loop r &&
case p of
Left s -> case r of
Expand Down

0 comments on commit c23cff8

Please sign in to comment.