[web-devel] yesod devel strangeness

Michael Snoyman michael at snoyman.com
Sun Apr 24 07:39:49 CEST 2011

Wow, this does seem to be a problem. It appears that loadDynamic never
loads a new version of the app. I can think of two approaches for
fixing this:

* Start the web server as a separate process, and kill/restart that
process each time a compile is successful (easier route).
* Ditch direct-plugins and write some code that loads the application
directly from the dist folder, hopefully avoiding this caching in the

The first approach is probably easier to hack together, but the second
is better as a long-term strategy, since we want to avoid the need to
install apps anyway. I have no experience with dynamic code loading
besides the direct-plugins and plugins packages, so if anyone has
recommendations, I'm happy to hear them.


On Sun, Apr 24, 2011 at 6:01 AM, Matias Eyzaguirre <dented42 at gmail.com> wrote:
> I like the simplicity that 'yesod devel' provides, however it has one fatal flaw. Specifically it doesn't seem to work (or I'm not using it correctly...).
> When I invoke it it correctly builds and starts serving my application, and when I make changes to the files it depends on it rebuilds the modules that were affected, however it seems to me that it doesn't actually load the changes, it just compiles them and the devel server continues to serve the original application, ignoring my changes.
> Is this something wrong with my machine specifically? Are others having this sort of trouble?
> I'm on a macbook pro running OS 10.6.7 with the Haskell Platform 2011.2 installed.
> Thanks,
>        Matias
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel

More information about the web-devel mailing list