Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setTransactionSettings :: MonadDB m => TransactionSettings -> m ()hpqtypes Database.PostgreSQL.PQTypes.Class Set transaction settings to supplied ones. Note that it won't change any properties of currently running transaction, only the subsequent ones.
setOption :: SectionName -> OptionName -> OptionValue -> Config -> Confighsini Data.Ini Sets the value of the option, adding it if it doesn't exist.
setenv :: LuaError e => DocumentedFunction ehslua-module-system HsLua.Module.System Set the specified environment variable to a new value.
setwd :: LuaError e => DocumentedFunction ehslua-module-system HsLua.Module.System Change current working directory.
-
hslua-repl HsLua.REPL Setup a new repl. Prints the version and extra info before the first prompt.
setAccept :: ByteString -> RequestBuilder ()http-common Network.Http.Types Indicate the content type you are willing to receive in a reply from the server. For more complex Accept: headers, use setAccept'.
setAccept' :: [(ByteString, Float)] -> RequestBuilder ()http-common Network.Http.Types Indicate the content types you are willing to receive in a reply from the server in order of preference. A call of the form:
setAccept' [("text/html", 1.0), ("application/xml", 0.8), ("*/*", 0)]will result in an Accept: header value of text/html; q=1.0, application/xml; q=0.8, */*; q=0.0 as you would expect.setAuthorizationBasic :: ByteString -> ByteString -> RequestBuilder ()http-common Network.Http.Types Set username and password credentials per the HTTP basic authentication method.
setAuthorizationBasic "Aladdin" "open sesame"
will result in an Authorization: header value of Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==. Basic authentication does not use a message digest function to encipher the password; the above string is only base-64 encoded and is thus plain-text visible to any observer on the wire and all caches and servers at the other end, making basic authentication completely insecure. A number of web services, however, use SSL to encrypt the connection that then use HTTP basic authentication to validate requests. Keep in mind in these cases the secret is still sent to the servers on the other side and passes in clear through all layers after the SSL termination. Do not use basic authentication to protect secure or user-originated privacy-sensitve information.setContentLength :: Int64 -> RequestBuilder ()http-common Network.Http.Types Specify the length of the request body, in bytes. RFC 2616 requires that we either send a Content-Length header or use Transfer-Encoding: chunked. If you know the exact size ahead of time, then call this function; the body content will still be streamed out by io-streams in more-or-less constant space. This function is special: in a PUT or POST request, http-streams will assume chunked transfer-encoding unless you specify a content length here, in which case you need to ensure your body function writes precisely that many bytes.
setContentMultipart :: Boundary -> RequestBuilder ()http-common Network.Http.Types If sending multipart form data (RFC 7578), you need to set the MIME type to "multipart/form-data" and specify the boundary separator that will be used. This function is special: you must subsequently use multipartFormBody to sequence the individual body parts. When sending the request it will separate the individual parts by the boundary value set by this function.