Thanks for the info.  I'll have to look into quasi-quoting to figure out exactly what you mean in that example.  

I haven't yet dived into persistent as I didn't know how to approach it.  These solutions will let me get started figuring it out.


On Thu, Jan 3, 2013 at 2:02 AM, Stefan Kersten <sk@k-hornz.de> wrote:
hi casey,

On 01/01/2013, at 21:19, Casey Basichis <caseybasichis@gmail.com> wrote:
Is anyone here using Persistent or another SQLite solution?

I know Persistent was rewritten some time ago to work without template Haskell, but all the demonstrations I've seen are still using the template aspects.

what i did was generate the source from the quasi quoted expression, there's an example here:

https://github.com/kaoskorobase/mescaline/blob/user/sk/lib/mescaline-database/Mescaline/Database/EntityGen.hs

it should work doing this on the host using the host compiler and use the source on the target. another possibility would be to write a source generator for the persistent input format.

sk



--
Casey James Basichis
Composer - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com
310.387.7540