Added permissionDenied function

This commit is contained in:
Michael Snoyman 2009-12-25 03:10:50 +02:00
parent 0c6493f5f5
commit fb772f9d9e

View File

@ -27,6 +27,7 @@ module Yesod.Handler
-- * Special handlers
, redirect
, notFound
, permissionDenied
-- * Setting headers
, addCookie
, deleteCookie
@ -206,6 +207,9 @@ redirect = errorResult . Redirect
notFound :: Handler yesod a
notFound = errorResult NotFound
permissionDenied :: Handler yesod a
permissionDenied = errorResult PermissionDenied
------- Headers
-- | Set the cookie on the client.
addCookie :: Int -- ^ minutes to timeout