[web-devel] Open for testing: new Hamlet syntax

Michael Snoyman michael at snoyman.com
Thu Dec 16 22:07:13 CET 2010

Hey all,

I've just pushed the first commit that includes support for the
angle-bracket syntax in Hamlet. Anyone who's interested, please take a
look at the code[1] and try to figure out what doesn't work yet. I'm
sure there are a lot of corner cases I have not yet taken into
account, so if you find something that doesn't produce the output you
expected, please let me know so I can add a test case for it and try
to get it fixed. (Yes, I code Hamlet with TDD.)

On a related note for those interested, I've started work on a lot of
new major versions for packages, including wai, wai-extra, persistent
and yesod. One of the things I'm considering for this release of Yesod
(0.7, not a 1.0 yet) is to move some of the functionality into
separate packages. In particular, I think forms, crud and json will
all be put in their own packages. The only change to persistent is
migrating from MonadInvertIO to MonadPeelIO, which is a much more well
designed approach.

wai will most likely be seeing a major change in how the underlying
mechanism works to make it more efficient (based on blaze-builder),
more standard (based on enumerator) and more generic. This last point
might make the interface more confusing, but I think it is worth it
overall. The new version of Yesod will be based on this version of
WAI, and I plan to simultaneously release new versions of related
packages, like wai-handler-fastcgi or yesod-auth.

Also, last call on new Yesod web page design. If no one volunteers,
I'm just going to grab the standard Haskell color scheme and get to
work on it myself.


[1] https://github.com/snoyberg/hamlet

More information about the web-devel mailing list