Use liftM to remove Functor constraint in handler