Drop usage of failure
This commit is contained in:
parent
2fd70b6e44
commit
60b4684119
@ -194,7 +194,7 @@ import Web.PathPieces (PathPiece(..))
|
||||
import Yesod.Core.Class.Handler
|
||||
import Yesod.Core.Types
|
||||
import Yesod.Routes.Class (Route)
|
||||
import Control.Failure (failure)
|
||||
import Control.Exception (throwIO)
|
||||
import Blaze.ByteString.Builder (Builder)
|
||||
import Safe (headMay)
|
||||
import Data.CaseInsensitive (CI)
|
||||
@ -229,7 +229,7 @@ tell :: MonadHandler m => Endo [Header] -> m ()
|
||||
tell hs = modify $ \g -> g { ghsHeaders = ghsHeaders g `mappend` hs }
|
||||
|
||||
handlerError :: MonadHandler m => HandlerContents -> m a
|
||||
handlerError = liftHandlerT . failure
|
||||
handlerError = liftIO . throwIO
|
||||
|
||||
hcError :: MonadHandler m => ErrorResponse -> m a
|
||||
hcError = handlerError . HCError
|
||||
|
||||
@ -43,7 +43,6 @@ library
|
||||
, random >= 1.0.0.2 && < 1.1
|
||||
, cereal >= 0.3
|
||||
, old-locale >= 1.0.0.2 && < 1.1
|
||||
, failure >= 0.2 && < 0.3
|
||||
, containers >= 0.2
|
||||
, monad-control >= 0.3 && < 0.4
|
||||
, transformers-base >= 0.4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user