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

TH quasi-quoter for a even more SQL-like language #3

Open
meteficha opened this Issue Sep 7, 2012 · 5 comments

Comments

Projects
None yet
5 participants
@meteficha
Copy link
Member

commented Sep 7, 2012

I'm not sure if this is a good or bad idea, we'd have to try it out. See http://blog.felipe.lessa.nom.br/?p=68#comment-125.

@singpolyma

This comment has been minimized.

Copy link

commented Sep 7, 2012

If anything TH is introduced, I'd like to see it in a separate package.

I've been thinking for awhile about what it would take to compile actual SQL (of various dialects) to a normalising EDSL for awhile (with a code-generator ofc), so I like the spirit of this idea, but would not like a TH dependency.

@meteficha

This comment has been minimized.

Copy link
Member Author

commented Sep 7, 2012

@singpolyma I agree with you wholeheartedly, it would be some kind esqueleto-th package =).

@maxnordlund

This comment has been minimized.

Copy link

commented Sep 17, 2012

Maybe something for Yesod, which already does a lot of TH? I would love to write SQL-like and have it type safe and serialized by persistent.

@nomeata

This comment has been minimized.

Copy link

commented May 2, 2013

Why go for SQL-like and not to a full support for (a reasonable subset of) SQL? I could imagine that you can write a quasiquoter that takes plain SQL, but parses it at compile time to verify the types and give you that benefit of an EDSL without having to learn a new language.

@rehno-lindeque

This comment has been minimized.

Copy link

commented Mar 4, 2014

+1 Yes please, something like a esqueleto-th would be very helpful. With the schema I'm working with, most of the identifiers end up so long that they appear nonsensical...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.