Skip to content
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

Caret Interpolation with justVarInterpolation #242

Closed
akazik opened this issue Nov 18, 2019 · 1 comment
Closed

Caret Interpolation with justVarInterpolation #242

akazik opened this issue Nov 18, 2019 · 1 comment

Comments

@akazik
Copy link
Contributor

akazik commented Nov 18, 2019

Using ^{..} in an QuasiQuoter with justVarInterpolation fails because the url renderer is used (even though it shouldn't).

To fix this replace contentsToShakespeare's contentToBuilder ContentMix case with:

return $
  if justVarInterpolation rs
    then derefToExp [] d
    else derefToExp [] d `AppE` VarE r
@snoyberg
Copy link
Member

Are you interested in sending a PR which includes a regression test?

@akazik akazik closed this as completed Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants