-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't panic on Text/replace ""
#2184
Conversation
I verified that this passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Ideally this should be merged together with the added tests from dhall-lang/dhall-lang#1172, but it doesn't matter much.
dhall/src/Dhall/Eval.hs
Outdated
let hLamInfo = case needle of | ||
VTextLit (VChunks [] "") -> TextReplaceEmpty | ||
_ -> Prim | ||
|
||
in VHLam hLamInfo $ \replacement -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that's how you include the lambda in the TextReplaceEmpty
case! :) I hadn't figured that out.
I can wait until the upstream tests are merged |
… caught by one of the newly-added regression tests
… for now
Fixes #2181