Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Yesod error (Lee Short)
2. Re: Yesod error (Dan Krol)
3. Re: Yesod error (Michael Snoyman)
----------------------------------------------------------------------
Message: 1
Date: Wed, 19 Jun 2013 14:43:07 -0700
From: Lee Short <[email protected]>
Subject: [Haskell-beginners] Yesod error
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
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
------------------------------
Message: 2
Date: Wed, 19 Jun 2013 20:18:58 -0700
From: Dan Krol <[email protected]>
Subject: Re: [Haskell-beginners] Yesod error
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAAWRcS-Fy3J=p_xCVsmjbiQ3UY-p=BKFm=upygfbpe-xjwj...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
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 <[email protected]> wrote:
> 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
> [email protected]
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130619/b8547d7e/attachment-0001.htm>
------------------------------
Message: 3
Date: Thu, 20 Jun 2013 08:04:57 +0300
From: Michael Snoyman <[email protected]>
Subject: Re: [Haskell-beginners] Yesod error
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<caka2jgl_jaxypstioypucbav+13_53g03y6jry4jp41+aku...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I haven't finished updating the book for Yesod 1.2 yet; the function
persist has been removed in 1.2, and replaced with the two alternatives
persistUpperCase and persistLowerCase. I recommend using the latter. I'm
hoping to finish updating the Persistent chapter soon (it's about halfway
done).
On Thu, Jun 20, 2013 at 12:43 AM, Lee Short <[email protected]> wrote:
> 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
> [email protected]
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130620/91db0812/attachment-0001.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 60, Issue 31
*****************************************