fastcgi 3001.0.2.3 → 3001.0.2.4
raw patch · 2 files changed
+11/−11 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Network/FastCGI.hsc +8/−8
- fastcgi.cabal +3/−3
Network/FastCGI.hsc view
@@ -3,7 +3,7 @@ -- Module : Network.FastCGI -- Copyright : (c) Bjorn Bringert 2004-2005, (c) Lemmih 2006 -- License : BSD-style (see the file libraries/network/LICENSE)--- +-- -- Maintainer : lemmih@gmail.com -- Stability : experimental -- Portability : non-portable (uses FFI)@@ -31,10 +31,10 @@ import Control.Exception import Control.Monad ( liftM ) import Data.Word (Word8)-import Foreign ( Ptr, castPtr, nullPtr, peekArray0 +import Foreign ( Ptr, castPtr, nullPtr, peekArray0 , alloca, mallocBytes, free, throwIfNeg_)-import Foreign.C ( CInt, CString, CStringLen- , peekCString )+import Foreign.C ( CInt(..), CString, CStringLen+ , peekCString ) import Foreign.Storable ( Storable (..) ) import System.IO.Unsafe (unsafeInterleaveIO,unsafePerformIO) @@ -85,7 +85,7 @@ -- | Handle a single CGI request, or FastCGI requests in an infinite loop. -- This function only returns normally if it was a CGI request. -- This lets you use the same program--- as either a FastCGI or CGI program, depending on what the server +-- as either a FastCGI or CGI program, depending on what the server -- treats it as. runFastCGIorCGI :: CGI CGIResult -> IO () runFastCGIorCGI f = do fcgi <- runOneFastCGIorCGI f@@ -93,10 +93,10 @@ else return () -- | Handle a single FastCGI or CGI request. This lets you use the same program--- as either a FastCGI or CGI program, depending on what the server +-- as either a FastCGI or CGI program, depending on what the server -- treats it as. runOneFastCGIorCGI :: CGI CGIResult- -> IO Bool -- ^ True if it was a FastCGI request, + -> IO Bool -- ^ True if it was a FastCGI request, -- False if CGI. runOneFastCGIorCGI f = do x <- fcgx_isCGI@@ -243,7 +243,7 @@ -- * ByteString utilities -- --- | Data.ByteString.Lazy.hGetContentsN generalized to arbitrary +-- | Data.ByteString.Lazy.hGetContentsN generalized to arbitrary -- reading functions. buildByteString :: (Ptr Word8 -> Int -> IO Int) -> Int -> IO Lazy.ByteString buildByteString f k = lazyRead >>= return . Lazy.fromChunks
fastcgi.cabal view
@@ -1,5 +1,5 @@ Name: fastcgi-Version: 3001.0.2.3+Version: 3001.0.2.4 Copyright: Bjorn Bringert, Lemmih Maintainer: Chris Done <chrisdone@gmail.com> License: BSD3@@ -20,8 +20,8 @@ library build-depends: base >= 4 && < 5, cgi >= 3000.0.0, bytestring >= 0.9.1.5 Extensions: ForeignFunctionInterface, EmptyDataDecls, ScopedTypeVariables- Exposed-Modules: + Exposed-Modules: Network.FastCGI- ghc-options: -Wall+ ghc-options: -O2 -Wall includes: fcgiapp.h extra-libraries: fcgi