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.

  1. setSzM :: (MonadThrow m, Index ix) => Sz ix -> Dim -> Sz Int -> m (Sz ix)

    massiv Data.Massiv.Core.Index

    Same as setDimM, but for Sz

    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)
    

  2. setResponse :: HttpStatusCode -> Declare (Definitions Schema) Response -> OpenApi -> OpenApi

    openapi3 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.

  3. setResponseFor :: Traversal' OpenApi Operation -> HttpStatusCode -> Declare (Definitions Schema) Response -> OpenApi -> OpenApi

    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.

  4. setResponseForWith :: Traversal' OpenApi Operation -> (Response -> Response -> Response) -> HttpStatusCode -> Declare (Definitions Schema) Response -> OpenApi -> OpenApi

    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.

  5. setResponseWith :: (Response -> Response -> Response) -> HttpStatusCode -> Declare (Definitions Schema) Response -> OpenApi -> OpenApi

    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.

  6. setUnliftedArray :: (PrimMonad m, PrimUnlifted a) => MutableUnliftedArray (PrimState m) a -> a -> Int -> Int -> m ()

    primitive-unlifted Data.Primitive.Unlifted.Array

    No documentation available.

  7. setUnliftedArray :: PrimUnlifted a => MutableUnliftedArray s a -> a -> Int -> Int -> ST s ()

    primitive-unlifted Data.Primitive.Unlifted.Array.ST

    No documentation available.

  8. setSmallUnliftedArray :: (PrimMonad m, PrimUnlifted a) => SmallMutableUnliftedArray (PrimState m) a -> a -> Int -> Int -> m ()

    primitive-unlifted Data.Primitive.Unlifted.SmallArray

    No documentation available.

  9. setSmallUnliftedArray :: PrimUnlifted a => SmallMutableUnliftedArray s a -> a -> Int -> Int -> ST s ()

    primitive-unlifted Data.Primitive.Unlifted.SmallArray.ST

    No documentation available.

  10. setBit :: Bits a => a -> Int -> a

    protolude Protolude

    x `setBit` i is the same as x .|. bit i

Page 342 of many | Previous | Next