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