[web-devel] Yesod: Lambda Abstraction inside interpolation

Michael Snoyman michael at snoyman.com
Mon May 16 20:23:48 CEST 2011

Let me put it this way: I think that lambdas would definitely belong to the
"complicated Hamlet" category.


On Mon, May 16, 2011 at 4:47 AM, Mathew de Detrich <deteego at gmail.com>wrote:

> Ok sure, as I side note is this specifically because of the way that the
> hamlet parser was coded or because of design reasons (because one line
> lamda's in hamlet are *really* handy for obvious reasons)
> On Sun, May 15, 2011 at 8:58 PM, Michael Snoyman <michael at snoyman.com>wrote:
>> Hamlet doesn't universally accept all Haskell syntax, lambdas being one
>> example. We're discussing the possibility of having another dialect of
>> Hamlet that supports much more syntax. But the "base" Hamlet will likely not
>> be supporting such things.
>> Michael
>> On Sun, May 15, 2011 at 11:48 AM, Mathew de Detrich <deteego at gmail.com>wrote:
>>> I came across a situation where I tried using lambda abstraction inside
>>> variable/template interpolation (when adding html with hamlet) and found out
>>> that the quasi quoter inside hamlet had issues parsing lambda abstractions
>>> (I am assuming due to the use of the '\' character). Is there some way to do
>>> lamdba abstraction inside hamlet quasiquoter, and if not will there be
>>> support added for this?
>>> Thanks
>>> _______________________________________________
>>> web-devel mailing list
>>> web-devel at haskell.org
>>> http://www.haskell.org/mailman/listinfo/web-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110516/1c66b0b5/attachment.htm>

More information about the web-devel mailing list