Yesod 0.8 does not compile with ghc 7.0.3.<br><br><div class="gmail_quote">On Wed, May 4, 2011 at 2:14 AM, Michael Snoyman <span dir="ltr">&lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Maybe there was a problem with your setup (cabal can do that<br>
occassionally). Try &quot;cabal update &amp;&amp; rm -rf ~/.ghc &amp;&amp; cabal install<br>
yesod&quot;. I would recommend using Yesod 0.8; there aren&#39;t *massive*<br>
differences from 0.7, but why go to an older version if you don&#39;t have<br>
to?<br>
<br>
On Tue, May 3, 2011 at 6:58 PM, Mister Asafe Ribeiro<br>
<div><div></div><div class="h5">&lt;<a href="mailto:asafe.hai.kai@gmail.com">asafe.hai.kai@gmail.com</a>&gt; wrote:<br>
&gt; I runned cabal install and then ./dist/build/kafeezeit-devel/kafeezeit-devel<br>
&gt; as usual.<br>
&gt; i tried Yesod 0.8 but it does not compile with ghc 7.0.3.<br>
&gt;<br>
&gt;<br>
&gt; On Mon, May 2, 2011 at 10:41 PM, Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I didn&#39;t realize you were using Yesod 0.7. In that case, scratch what<br>
&gt;&gt; I said previously: the persistent-template package only applies to<br>
&gt;&gt; Yesod 0.8 and later. How exactly are you running the devel server?<br>
&gt;&gt;<br>
&gt;&gt; On Tue, May 3, 2011 at 2:06 AM, Mister Asafe Ribeiro<br>
&gt;&gt; &lt;<a href="mailto:asafe.hai.kai@gmail.com">asafe.hai.kai@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ---------- Forwarded message ----------<br>
&gt;&gt; &gt; From: Mister Asafe Ribeiro &lt;<a href="mailto:asafe.hai.kai@gmail.com">asafe.hai.kai@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Date: Mon, May 2, 2011 at 8:00 PM<br>
&gt;&gt; &gt; Subject: Re: [web-devel] Devel Server<br>
&gt;&gt; &gt; To: Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What now ?  I get that:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;  Couldn&#39;t match expected type `Database.Persist.Base.EntityDef&#39;<br>
&gt;&gt; &gt;                 with actual type<br>
&gt;&gt; &gt; `persistent-0.4.2:Database.Persist.Base.EntityD<br>
&gt;&gt; &gt; When I change the imports to <a href="http://Database.Persist.TH" target="_blank">Database.Persist.TH</a> and<br>
&gt;&gt; &gt; Database.Persist.Base<br>
&gt;&gt; &gt; the file where is the foundation, KafeeZeit.hs, does not work anymore<br>
&gt;&gt; &gt; and I<br>
&gt;&gt; &gt; do not know what type/functions supply. I&#39;m using Yesod 0.7<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Sun, May 1, 2011 at 11:57 PM, Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Mon, May 2, 2011 at 5:53 AM, Mister Asafe Ribeiro<br>
&gt;&gt; &gt;&gt; &lt;<a href="mailto:asafe.hai.kai@gmail.com">asafe.hai.kai@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; When I try to run devel server of my yesod powered site i get:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Could not find module `<a href="http://Database.Persist.TH" target="_blank">Database.Persist.TH</a>&#39;:<br>
&gt;&gt; &gt;&gt; &gt;   It is a member of the hidden package `persistent-0.4.2&#39;.<br>
&gt;&gt; &gt;&gt; &gt;   It is a member of the hidden package `persistent-0.3.1.3&#39;.<br>
&gt;&gt; &gt;&gt; &gt;   Use -v to see a list of the files searched for.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; What should I do to expose persistent module ?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Actually, it&#39;s now part of persistent-template, try installing that<br>
&gt;&gt; &gt;&gt; package.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Michael<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; web-devel mailing list<br>
&gt;&gt; &gt; <a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
&gt;&gt; &gt; <a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na-na<br>
&gt;<br>
</div></div></blockquote></div><br>