Yesod: Lambda Abstraction inside interpolation

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

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
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@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

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
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
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@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

Let me put it this way: I think that lambdas would definitely belong to the
"complicated Hamlet" category.
Michael
On Mon, May 16, 2011 at 4:47 AM, Mathew de Detrich
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
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
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@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
participants (2)
-
Mathew de Detrich
-
Michael Snoyman