Hoogle Search
Within Stackage Nightly 2026-07-01 (ghc-9.12.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setDuplication :: MonadQuery m => Duplication -> m ()relational-query Database.Relational.Monad.Class Specify duplication.
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.
-
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.
-
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. setEra :: Era Rational -> Active a -> Active aactive Data.Active Set the era of an Active value. Note that this will change a constant Active into a dynamic one which happens to have the same value at all times.
setCaseSensitivity :: CaseSensitivity -> Replacer -> Replaceralfred-margaret Data.Text.AhoCorasick.Replacer Updates the case sensitivity of the replacer. Does not change the capitilization of the needles. The caller should be certain that if IgnoreCase is passed, the needles are already lower case.
setCaseSensitivity :: CaseSensitivity -> Searcher v -> Searcher valfred-margaret Data.Text.AhoCorasick.Searcher Updates the case sensitivity of the searcher. Does not change the capitilization of the needles. The caller should be certain that if IgnoreCase is passed, the needles are already lower case.
setNotNullSyntax :: IsSql92AlterColumnActionSyntax syntax => syntaxbeam-migrate Database.Beam.Migrate.SQL.SQL92 No documentation available.
setNullSyntax :: IsSql92AlterColumnActionSyntax syntax => syntaxbeam-migrate Database.Beam.Migrate.SQL.SQL92 No documentation available.