dhall-lang / dhall-haskell

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

Freeze expressions providing a custom context and normalizer #2478

Closed mmhat closed 1 year ago

mmhat commented 1 year ago

This PR adds variants for the functions found in the Dhall.Freeze module that also take a context and a normalizer. Those functions are prefixed with custom in order to maintain backwards compatibility. Code common to the existing functions and the new ones were moved to a bunch of helper functions such that there is no unnecessary code duplication.

Gabriella439 commented 1 year ago

Maybe these could take an EvaluateSettings since that has what we need (and some other useful stuff, too)