Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. rqSetParam :: ByteString -> [ByteString] -> Request -> Request

    snap-core Snap.Internal.Http.Types

    Writes a key-value pair to the parameters mapping within the given request. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Snap.Test as T
    ghci> import qualified Data.Map as M
    ghci> :{
    ghci| rq <- T.buildRequest $ do
    ghci|         T.postUrlEncoded "/foo/bar" $ M.fromList [("baz", ["qux"])]
    ghci|         T.setQueryStringRaw "baz=quux"
    ghci| :}
    ghci> rqParams rq
    fromList [("baz",["qux","quux"])]
    ghci> rqParams $ rqSetParam "baz" ["corge"] rq
    fromList [("baz", ["corge"])]
    

  2. parseToCompletion :: Parser a -> ByteString -> Maybe a

    snap-core Snap.Internal.Parsing

    No documentation available.

  3. responseToString :: Response -> IO ByteString

    snap-core Snap.Test

    Converts the given Response to a bytestring. Example:

    ghci> import Snap.Core
    ghci> responseToString emptyResponse
    "HTTP/1.1 200 OK\r\n\r\n"
    

  4. data OriginSet

    snap-core Snap.Util.CORS

    A set of origins. RFC 6454 specifies that origins are a scheme, host and port, so the OriginSet wrapper around a HashSet ensures that each URI constists of nothing more than this.

  5. mkOriginSet :: [URI] -> OriginSet

    snap-core Snap.Util.CORS

    No documentation available.

  6. data IntSet

    uniplate Data.Generics.Uniplate.Data.Instances

    Invariant preserving version of IntSet from the containers packages, suitable for use with Uniplate. Use toIntSet to construct values, and fromIntSet to deconstruct values.

  7. fromIntSet :: IntSet -> IntSet

    uniplate Data.Generics.Uniplate.Data.Instances

    Deconstruct a value of type IntSet.

  8. fromSet :: Set k -> Set k

    uniplate Data.Generics.Uniplate.Data.Instances

    Deconstruct a value of type Set.

  9. toIntSet :: IntSet -> IntSet

    uniplate Data.Generics.Uniplate.Data.Instances

    Construct a value of type IntSet.

  10. toSet :: Ord k => Set k -> Set k

    uniplate Data.Generics.Uniplate.Data.Instances

    Construct a value of type Set.

Page 1270 of many | Previous | Next