Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1336.
Matching Haskell implementation: dhall-lang/dhall-haskell#2538.
This was mostly copy-pasted from 74233ca, sometimes without much understanding.
I decided for uppercase letters A-F (for no particular reason) and adding the
0x
prefix (so that the resulting strings are valid Dhall code). I'm not attached to it and this can be easily modified. On the other hand, changing uppercase to lowercase or removing/replacing the prefix is easy withText/replace
, so this decision does not have much weight: utilities for custom formatting can be implemented as Dhall functions.standard/beta-normalization.md
probably needs some corrections. What I came up with doesn't look good to me. Probably it could be done better with a comment. I would be grateful for suggestions.