X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FAbortion.hs;h=3dc94c2c52a281876b9e7fdff3241184107c00c9;hb=243b99439640480fc148d2e175247dacce04a222;hp=7b69fb53ae95460d6e6d970b47db4094689cbee2;hpb=09fe5429b2a1bcea6d6e57ab1c4a5178807cbacd;p=Lucu.git diff --git a/Network/HTTP/Lucu/Abortion.hs b/Network/HTTP/Lucu/Abortion.hs index 7b69fb5..3dc94c2 100644 --- a/Network/HTTP/Lucu/Abortion.hs +++ b/Network/HTTP/Lucu/Abortion.hs @@ -2,8 +2,8 @@ FlexibleContexts , UnicodeSyntax #-} --- |Aborting the computation of 'Network.HTTP.Lucu.Resource.Resource' --- in any 'Prelude.IO' monads or arrows. +-- |Aborting the computation of 'Network.HTTP.Lucu.Rsrc' in any 'IO' +-- monads. module Network.HTTP.Lucu.Abortion ( Abortion , mkAbortion @@ -19,7 +19,7 @@ import Data.Collections import Data.Monoid.Unicode import Data.Text (Text) import Network.HTTP.Lucu.Abortion.Internal -import Network.HTTP.Lucu.Response +import Network.HTTP.Lucu.Response.StatusCode import Prelude.Unicode -- |Construct an 'Abortion' with additional headers and an optional @@ -49,7 +49,7 @@ mkAbortion' sc msg } -- |Throw an 'Abortion' in a 'MonadIO', including the very --- 'Network.HTTP.Lucu.Resource.Resource' monad. +-- 'Network.HTTP.Lucu.Rsrc' monad. abort ∷ MonadIO m ⇒ Abortion → m a {-# INLINE abort #-} abort = liftIO ∘ throwIO