dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
908 stars 211 forks source link

Fix custom normalization #2464

Closed Gabriella439 closed 1 year ago

Gabriella439 commented 1 year ago

Fixes https://github.com/dhall-lang/dhall-haskell/issues/2463

The root of the problem was that normalizeWithM would only apply the custom normalizer to function applications, instead of testing the custom normalizer on all subexpressions.