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.
setWindowTitle :: MonadIO m => Window -> CString -> m ()sdl2 SDL.Raw.Video No documentation available.
setClipboardText :: MonadIO m => Text -> m ()sdl2 SDL.Video Replace the contents of the clipboard with the given text. Throws SDLException on failure.
setWindowIcon :: MonadIO m => Window -> Surface -> m ()sdl2 SDL.Video Set the icon for a window.
setWindowMode :: MonadIO m => Window -> WindowMode -> m ()sdl2 SDL.Video Change between window modes. Throws SDLException on failure.
setWindowPosition :: MonadIO m => Window -> WindowPosition -> m ()sdl2 SDL.Video Set the position of the window.
setPaletteColors :: MonadIO m => Palette -> Vector (V4 Word8) -> CInt -> m ()sdl2 SDL.Video.Renderer Set a range of colors in a palette. See SDL_SetPaletteColors for C documentation.
-
A cross-platform library for setting environment variables A cross-platform library for setting environment variables Note: Since base-4.7.0.0 the functions setEnv and unsetEnv are provided by System.Environment. System.SetEnv merily re-exports those functions when built with base >= 4.7.
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.