Hoogle Search

Within LTS Haskell 24.18 (ghc-9.10.3)

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

  1. setboolopt :: String -> RawOpts -> RawOpts

    hledger-lib Hledger.Data.RawOptions

    No documentation available.

  2. setopt :: String -> String -> RawOpts -> RawOpts

    hledger-lib Hledger.Data.RawOptions

    No documentation available.

  3. setResponse :: HttpStatusCode -> Declare (Definitions Schema) Response -> Swagger -> Swagger

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

  4. setResponseFor :: Traversal' Swagger Operation -> HttpStatusCode -> Declare (Definitions Schema) Response -> Swagger -> Swagger

    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.

  5. setResponseForWith :: Traversal' Swagger Operation -> (Response -> Response -> Response) -> HttpStatusCode -> Declare (Definitions Schema) Response -> Swagger -> Swagger

    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.

  6. setResponseWith :: (Response -> Response -> Response) -> HttpStatusCode -> Declare (Definitions Schema) Response -> Swagger -> Swagger

    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.

  7. setScalarStyle :: (Scalar -> Either String (Tag, ScalarStyle, Text)) -> SchemaEncoder -> SchemaEncoder

    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.

  8. setBackendSpecificForeignKeyName :: (EntityNameDB -> FieldNameDB -> ConstraintNameDB) -> BackendSpecificOverrides -> BackendSpecificOverrides

    esqueleto Database.Esqueleto

    Set the backend's foreign key generation function to this value.

  9. setEntityDBName :: EntityNameDB -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto

    No documentation available.

  10. setEntityId :: FieldDef -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto

    Set an entityId to be the given FieldDef.

Page 47 of many | Previous | Next