Hoogle Search

Within Stackage Nightly 2026-06-22 (ghc-9.12.4)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. settings_releaseStage :: Settings -> Text

    bugsnag Data.Bugsnag.Settings

    The current release-stage, Production by default

  2. setBit' :: forall (w :: Nat) . NatRepr w -> Natural -> BV w -> BV w

    bv-sized Data.BitVector.Sized

    Like setBit, but without the requirement that the index bit refers to an actual bit in the input BV. If it is out of range, just silently return the original input.

  3. setDefaultExpiration :: Cache k v -> Maybe TimeSpec -> Cache k v

    cache Data.Cache

    Change the default expiration value of newly added cache items. See newCache for more information on the default expiration value.

  4. setOption :: SectionName -> OptionName -> OptionValue -> Config -> Config

    hsini Data.Ini

    Sets the value of the option, adding it if it doesn't exist.

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

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

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

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

  9. setOf :: forall k a (is :: IxList) s . (Is k A_Fold, Eq a, Hashable a) => Optic' k is s a -> s -> HashSet a

    optics-extra Data.HashSet.Optics

    Construct a HashSet from a fold.

    >>> setOf folded ["hello","world"]
    fromList ["hello","world"]
    
    >>> setOf (folded % _2) [("hello",1),("world",2),("!!!",3)]
    fromList [1,2,3]
    

  10. setmapped :: (Eq b, Hashable b) => Setter (HashSet a) (HashSet b) a b

    optics-extra Data.HashSet.Optics

    This Setter can be used to change the type of a HashSet by mapping the elements to new values. Sadly, you can't create a valid Traversal for a HashSet, but you can manipulate it by reading using folded and reindexing it via setmapped.

    >>> over setmapped (+1) (HashSet.fromList [1,2,3,4])
    fromList [2,3,4,5]
    

Page 65 of many | Previous | Next