Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. readProcessWithExitCode :: ListLikeProcessIO text char => FilePath -> [String] -> text -> IO (ExitCode, text, text)

    process-extras System.Process.ListLike

    Like readProcessWithExitCode, but with generalized input and output type. Aside from the usual text-like types, the output can be a list of Chunk a. This lets you process the chunks received from stdout and stderr lazil, in the order they are received, as well as the exit code. Utilities to handle Chunks are provided in System.Process.ListLike.

  2. readCreateProcessWithExitCode :: CreateProcess -> Text -> IO (ExitCode, Text, Text)

    process-extras System.Process.Text

    No documentation available.

  3. readProcessWithExitCode :: FilePath -> [String] -> Text -> IO (ExitCode, Text, Text)

    process-extras System.Process.Text

    Specialized version for backwards compatibility.

  4. readCreateProcessWithExitCode :: CreateProcess -> Builder -> IO (ExitCode, Builder, Builder)

    process-extras System.Process.Text.Builder

    No documentation available.

  5. readProcessWithExitCode :: FilePath -> [String] -> Builder -> IO (ExitCode, Builder, Builder)

    process-extras System.Process.Text.Builder

    Specialized version for backwards compatibility.

  6. readCreateProcessWithExitCode :: CreateProcess -> Text -> IO (ExitCode, Text, Text)

    process-extras System.Process.Text.Lazy

    No documentation available.

  7. readProcessWithExitCode :: FilePath -> [String] -> Text -> IO (ExitCode, Text, Text)

    process-extras System.Process.Text.Lazy

    Specialized version for backwards compatibility.

  8. readCookie :: (MonadSnap m, Readable a) => ByteString -> m a

    snap-core Snap.Core

    Gets the HTTP Cookie with the specified name and decodes it. If the decoding fails, the handler calls pass. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let cookie = Cookie "name" "value" Nothing Nothing Nothing False False
    ghci> let r = T.get "/foo/bar" M.empty >> T.addCookies [cookie]
    ghci> T.runHandler r (readCookie "name" >>= writeBS)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Thu, 07 Aug 2014 12:20:09 GMT
    
    value
    

  9. readRequestBody :: MonadSnap m => Word64 -> m ByteString

    snap-core Snap.Core

    Returns the request body as a lazy bytestring. /Note that the request is not actually provided lazily!/ Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let r = T.put "/foo" "text/plain" "some text"
    ghci> T.runHandler r (readRequestBody 2048 >>= writeLBS)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Thu, 07 Aug 2014 20:08:44 GMT
    
    some text
    
    Since: 0.6

  10. readCookie :: (MonadSnap m, Readable a) => ByteString -> m a

    snap-core Snap.Internal.Core

    Gets the HTTP Cookie with the specified name and decodes it. If the decoding fails, the handler calls pass. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> import qualified Snap.Test as T
    ghci> let cookie = Cookie "name" "value" Nothing Nothing Nothing False False
    ghci> let r = T.get "/foo/bar" M.empty >> T.addCookies [cookie]
    ghci> T.runHandler r (readCookie "name" >>= writeBS)
    HTTP/1.1 200 OK
    server: Snap/test
    date: Thu, 07 Aug 2014 12:20:09 GMT
    
    value
    

Page 135 of many | Previous | Next