Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setEnv :: String -> String -> IO ()setenv System.SetEnv setEnv name value sets the specified environment variable to value. Early versions of this function operated under the mistaken belief that setting an environment variable to the empty string on Windows removes that environment variable from the environment. For the sake of compatibility, it adopted that behavior on POSIX. In particular
setEnv name ""
has the same effect asunsetEnv name
If you'd like to be able to set environment variables to blank strings, use setEnv. Throws IOException if name is the empty string or contains an equals sign. Beware that this function must not be executed concurrently with getEnv, lookupEnv, getEnvironment and such. One thread reading environment variables at the same time with another one modifying them can result in a segfault, see Setenv is not Thread Safe for discussion.setResponse :: HttpStatusCode -> Declare (Definitions Schema) Response -> Swagger -> Swaggerswagger2 Data.Swagger.Operation Set response for all operations. This will also update global schema definitions. If the response already exists it will be overwritten.
setResponse = setResponseFor allOperations
Example:>>> let api = (mempty :: Swagger) & paths .~ IOHM.fromList [("/user", mempty & get ?~ mempty)] >>> let res = declareResponse (Proxy :: Proxy Day) >>> encode $ api & setResponse 200 res "{\"swagger\":\"2.0\",\"info\":{\"title\":\"\",\"version\":\"\"},\"paths\":{\"/user\":{\"get\":{\"responses\":{\"200\":{\"description\":\"\",\"schema\":{\"$ref\":\"#/definitions/Day\"}}}}}},\"definitions\":{\"Day\":{\"example\":\"2016-07-22\",\"format\":\"date\",\"type\":\"string\"}}}"See also setResponseWith.-
swagger2 Data.Swagger.Operation Set response for specified operations. This will also update global schema definitions. If the response already exists it will be overwritten. See also setResponseForWith.
-
swagger2 Data.Swagger.Operation Set or update response for specified operations. This will also update global schema definitions. If the response already exists, but it can't be dereferenced (invalid $ref), then just the new response is used. See also setResponseFor.
-
swagger2 Data.Swagger.Operation Set or update response for all operations. This will also update global schema definitions. If the response already exists, but it can't be dereferenced (invalid $ref), then just the new response is used.
setResponseWith = setResponseForWith allOperations
See also setResponse. -
HsYAML Data.YAML.Schema Set the Scalar style in the encoded YAML. This is a function that decides for each Scalar the type of YAML string to output. WARNING: You must ensure that special strings (like "true"/"false"/"null"/"1234") are not encoded with the Plain style, because then they will be decoded as boolean, null or numeric values. You can use isAmbiguous to detect them. NOTE: For different SchemaResolvers, different strings are ambiguous. For example, "true" is not ambiguous for failsafeSchemaResolver.
setBlocking :: T mode -> BlockMode -> IO ()alsa-seq Sound.ALSA.Sequencer Change the blocking mode of the given client. In block mode, the client falls into sleep when it fills the output pool with events, or when it demands events from an empty input pool. memory pool with full events. Clients that are sleeping due to loack of space in the output pool are woken when a certain amount of free space becomes available (see set_output_room).
setInputBufferSize :: T mode -> Word -> IO ()alsa-seq Sound.ALSA.Sequencer Resize the input buffer. This function clears all input events (see drop_input).
setOutputBufferSize :: T mode -> Word -> IO ()alsa-seq Sound.ALSA.Sequencer Resize of the output buffer. This function clears all output events (see drop_output).
setPoolInput :: T mode -> Word -> IO ()alsa-seq Sound.ALSA.Sequencer Resize the input memory pool.