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

Add SQL QQ variants supporting anti-quotation of arbitrary Haskell expressions #92

Closed
wants to merge 3 commits into from

Conversation

3noch
Copy link
Collaborator

@3noch 3noch commented Aug 19, 2019

No description provided.

, quoteExp = \s -> appE [| uncurry traceExecute |] (sqlQExp s)
, quoteDec = error "traceQueryQ: quasiquoter used in declaration context"
}
traceExecuteQ = (defaultQQ "traceExecuteQ") { quoteExp = appE [| uncurry traceExecute |] . sqlQExp }

traceExecuteQ_ :: QuasiQuoter
Copy link
Contributor

@alexfmpe alexfmpe Aug 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, traceExecuteQ and traceExecuteQ_ actually had wrong (referred to traceQueryQ) error messages

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So technically this is a semantic change. You know...for those people who are catching this and making choices based on the string of the message. 🤔 😉

@3noch 3noch force-pushed the eac@sql-qq-interpolate branch 2 times, most recently from 41ccd8d to 0e6e7e3 Compare August 19, 2019 05:20
@3noch 3noch force-pushed the eac@sql-qq-interpolate branch from 0e6e7e3 to 79f07eb Compare August 20, 2019 15:11
@3noch
Copy link
Collaborator Author

3noch commented Aug 20, 2019

I pulled all the clean up into #93. Thus this MR only deals with the new QQs.

@ali-abrar ali-abrar closed this Nov 16, 2021
@ali-abrar ali-abrar deleted the eac@sql-qq-interpolate branch November 20, 2021 18:59
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

Successfully merging this pull request may close these issues.

3 participants