[web-devel] Minor delay of Yesod 0.8
greg at gregweber.info
Tue Apr 19 02:29:03 CEST 2011
It won't play worse with cabal-dev than the previous :)
This is all very beta at the moment, but we will definitely figure out how
to support cabal-dev eventually.
On Mon, Apr 18, 2011 at 5:00 PM, Mark Bradley <barkmadley at gmail.com> wrote:
> On Tue, Apr 19, 2011 at 12:56 AM, Michael Snoyman <michael at snoyman.com>
> > Hi all,
> > Just wanted to let you know: there's been a minor delay in the 0.8
> > of Yesod, all for good reasons. Rick Richardson and Greg Weber have put
> in a
> > lot of work on the MongoDB backend for Persistent, and now we'll be able
> > include it (as an alpha) with this release. Congrats to them, this is
> > cool.
> > The second reason is that I decided to be naughty and completely
> > my feature freeze. As we've discussed recently, there are some issues
> > our hint-based wai-handler-devel approach. Without going into too many
> > details (both to keep from boring you, and because I have very little
> > before Passover starts), I've made the following modifications to the
> > scaffolding tool:
> > * Running "yesod" by itself gives you a list of commands.
> > * Running "yesod init" gives the behavior previously held by "yesod",
> > generate a scaffolded site.
> > * Running "yesod build" is *almost* identical to "cabal build", but with
> > change: it performs a dependency analysis of external files included by
> > Template Haskell (Hamlet templates, routes, entity definitions) and
> > modification times as needed to force cabal to build modules. For
> > if "Handler/Root.hs" references "hamlet/root.hamlet", and the latter has
> > later modification time than the former, the former's modification times
> > will be changed to match that of the latter.
> > * Running "yesod devel" runs devel server. Instead of using hint, the
> > server now uses cabal for the compiling (passing in a special "devel"
> > and direct-plugins to load up the compiled code.
> > In order to make this work, there are a few necessary modifications to an
> > individual site:
> > * The "Controller" module now needs to have a "withDevelApp" function,
> > must be of type "Dynamic". The internal type of this must be
> > -> IO ()) -> IO ()".
> > * The cabal file must provide a library section. The library should only
> > built when the devel flag is passed in, it should be compiled with "-O0"
> > speed up compiling) and executables are disabled (also for speed).
> > * direct-plugins can only load up installed packages, so "yesod devel"
> > actually install your package.
> Does this play nicely with cabal-dev?
> > * The scaffolded site has already been updated to work properly with
> > devel", so you can base your modifications on that.
> > The only bug I'm aware of right now is that if a file disappears at the
> > wrong time then the call to get the modification time will fail. This may
> > seem far fetched, but it happened to me when saving a file with vim.
> > Shouldn't be too hard to fix, I just don't have time right now.
> > The code's on Yackage. If anyone wants to give it a shot, feel free.
> > Michael
> > _______________________________________________
> > web-devel mailing list
> > web-devel at haskell.org
> > http://www.haskell.org/mailman/listinfo/web-devel
> sent from an internet enabled device
> web-devel mailing list
> web-devel at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel