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.
setSzM :: (MonadThrow m, Index ix) => Sz ix -> Dim -> Sz Int -> m (Sz ix)massiv Data.Massiv.Core.Index Example
>>> import Data.Massiv.Core.Index >>> setSzM (Sz2 2 3) 2 (Sz1 1) :: IO Sz2 Sz (1 :. 3) >>> setSzM (Sz2 2 3) 3 (Sz1 1) :: IO Sz2 *** Exception: IndexDimensionException: (Dim 3) for (2 :. 3)
setResponse :: HttpStatusCode -> Declare (Definitions Schema) Response -> OpenApi -> OpenApiopenapi3 Data.OpenApi.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 :: OpenApi) & paths .~ IOHM.fromList [("/user", mempty & get ?~ mempty)] >>> let res = declareResponse "application/json" (Proxy :: Proxy Day) >>> BSL.putStrLn $ encodePretty $ api & setResponse 200 res { "components": { "schemas": { "Day": { "example": "2016-07-22", "format": "date", "type": "string" } } }, "info": { "title": "", "version": "" }, "openapi": "3.0.0", "paths": { "/user": { "get": { "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Day" } } }, "description": "" } } } } } }See also setResponseWith.-
openapi3 Data.OpenApi.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.
-
openapi3 Data.OpenApi.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.
-
openapi3 Data.OpenApi.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. -
primitive-unlifted Data.Primitive.Unlifted.Array No documentation available.
setUnliftedArray :: PrimUnlifted a => MutableUnliftedArray s a -> a -> Int -> Int -> ST s ()primitive-unlifted Data.Primitive.Unlifted.Array.ST No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.SmallArray No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.SmallArray.ST No documentation available.
setBit :: Bits a => a -> Int -> aprotolude Protolude x `setBit` i is the same as x .|. bit i