That's a good idea. I've pushed a commit with that code to Git. I'm not sure if I'm going to release a 0.6.8 including some recent changes, or just wait for 0.7. If you need the function sooner rather than later, then speak up ;). Now a question for everyone: what do people think of removing persistent as a dependency for yesod, and creating a separate yesod-persistent package? Similar arguments apply here as for yesod-auth and yesod-form: yesod is lighter, APIs can change more freely, and less dependencies. Another possible change would be to remove the hamlet and web-routes-quasi dependencies from persistent, and instead stick orphan instances in a yesod-persistent package. Thoughts are welcome on this, I'm rather ambivalent at the moment. Michael 2010/12/20 いとうかつとし <cutsea110@gmail.com>:
I'd like to support getBy404 as like as get404 on yesod framework. getBy404 ukey = do mres <- getBy ukey case mres of Nothing -> lift notFound Just res -> return res for example, on wiki site, the resource url include wikiname as key(String) not id (Int). In this situation, getBy404 are frequently encountered. How about this?
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel