text 0.11

This commit is contained in:
Michael Snoyman 2010-11-30 20:44:24 +02:00
parent ca1fe977c5
commit cc612db73f
2 changed files with 1 additions and 9 deletions

View File

@ -49,7 +49,6 @@ module Yesod.Handler
, sendFile
, sendResponse
, sendResponseStatus
, sendResponseCreated
-- * Setting headers
, setCookie
, deleteCookie
@ -416,13 +415,6 @@ sendResponseStatus :: HasReps c => W.Status -> c -> GHandler s m a
sendResponseStatus s = GHandler . lift . throwMEither . HCContent s
. chooseRep
-- | Send a 201 "Created" response with the given route as the Location
-- response header.
sendResponseCreated :: Route m -> GHandler s m a
sendResponseCreated url = do
r <- getUrlRender
GHandler $ lift $ throwMEither $ HCCreated $ r url
-- | Return a 404 not found page. Also denotes no handler available.
notFound :: Failure ErrorResponse m => m a
notFound = failure NotFound

View File

@ -33,7 +33,7 @@ library
, wai-extra >= 0.2.4 && < 0.3
, bytestring >= 0.9.1.4 && < 0.10
, directory >= 1 && < 1.2
, text >= 0.5 && < 0.11
, text >= 0.5 && < 0.12
, template-haskell >= 2.4 && < 2.6
, web-routes-quasi >= 0.6 && < 0.7
, hamlet >= 0.5.1 && < 0.7