Port to Yesod 1.2

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>