
Quazi-quoting does weird things during the compiling stage. I brought this
up with the author of Yesod, but there doesn't seem to be a great place to
put it in the documentation.
It's been a while since I've tried this, and since I've seen the error, so
I'm hoping it's the same error you had. And the answer is that the problem
has to do with when the quazi-quoter is processed, between the different
compiler passes of ghc. So, to fix it, you have to do things like make sure
that the quazi-quotes are (I think?) at the bottom of the file. And if that
causes problems, you have to play around with isolating the quazi-quotes
from other parts of your code, by putting them into include files.
That said, that the example wouldn't even compile sounds like a bug in the
documentation.
On Wed, Jun 19, 2013 at 2:43 PM, Lee Short
I am working my way through the Yesod book and I am having trouble writing any code that uses persist. I am consistently getting
Not in scope: 'persist'
at the point I am invoking the persist quasiquoter. This even happens when I am using the example code verbatim. Tried updating to the latest versions of yesod, persist, etc. Didn't help. The Hackage docs don't show any info on the quasiquoters in found in a package (presumably because they are a language extensio).
Anybody seen this before? Or got any ideas how I could debut this?
thanks, Lee
______________________________**_________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/**mailman/listinfo/beginnershttp://www.haskell.org/mailman/listinfo/beginners