Ok I have found the source issue, in my case it was an issue that ended up
turning into how the modules for my Webserver is organized, and that
compiler error (about an ambiguous type) occurred because my main webserver
datatype was not instantiated yet in that module (using where aproot).
In
Actually, there's a much simpler solution already implemented in the
scaffolded site: instead of using mkYesod, use mkYesodData and
mkYesodDispatch. mkYesod is really just a combination of the two. The
former defines your route datatype, and the latter creates the
YesodDispatch instance. This
..
You tell me this now ;)
I was actually wanting to look at scaffolding, but the section for it in the
Yesod book is not completed yet (http://www.yesodweb.com/book/scaffold)
Well that was like 4 hours wasted
Do you have a quick example of how scaffolding is done with mkYesodData and
My best advice is to just run the scaffolder. Any other examples I can
point you to (like the Haskellers source code) will contain a lot of
extra information that won't necessarily apply to your case.
Michael
On Mon, May 2, 2011 at 4:28 PM, Mathew de Detrich dete...@gmail.com wrote:
..
You
Im not sure what you mean exactly by run the scaffolder, (just to be
clear, I am not exactly sure what technically scaffolding is apart from it
being referenced once or twice in your documentation)
I assume you are talking about setting up the handlers for a specific route,
and then creating that
Type:
yesod init
It will ask you some questions and then generate a bootstrap site.
Michael
On Mon, May 2, 2011 at 4:40 PM, Mathew de Detrich dete...@gmail.com wrote:
Im not sure what you mean exactly by run the scaffolder, (just to be
clear, I am not exactly sure what technically
Ok thanks, that helped
On Mon, May 2, 2011 at 11:53 PM, Michael Snoyman mich...@snoyman.comwrote:
Type:
yesod init
It will ask you some questions and then generate a bootstrap site.
Michael
On Mon, May 2, 2011 at 4:40 PM, Mathew de Detrich dete...@gmail.com
wrote:
Im not sure what
Without seeing the actual code that's causing the breakage, there's
not much I can tell you. (If you'd like me to take a look off-list,
feel free to send me a private email.) My best recommendation is to
try putting a type signature on getRootR.
As a general issue: polymorphic Hamlet is a very