[web-devel] lazy RESTful Content

Greg Weber greg at gregweber.info
Thu Jan 6 04:29:27 CET 2011


lazy and REST seem to go together :)

Perhaps this will expose my ignorance of laziness/strictness and isn't at
all Yesod specific. I have a handler that can serve html or json. When an
html request comes in it still executes the json code. I assume this is
because the json code uses liftIO. What is the strategy for avoiding
executing the json code?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110105/71dd5677/attachment.htm>


More information about the web-devel mailing list