yesod: remove unhelpful std::function<> instances

Signed-off-by: Alex Dubov <oakad@yahoo.com>