Hoogle Search
Within Stackage Nightly 2025-10-12 (ghc-9.12.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setFieldAttrs :: [FieldAttr] -> FieldDef -> FieldDefpersistent-redis Database.Persist.Redis setProp :: POrder a => Prop a -> IO a -> IO ()rec-def Data.Propagator.Naive Sets a new value calculated from the given action. The action is executed atomically. Throws if the propagator is already frozen If the value has changed, all watchers are notified afterwards (not atomically).
-
rec-def Data.Propagator.P2 Set a propagator to top. If it was bottom before, runs the actions queued with whenTop. It does so after setting the propagator to top, so that cycles are broken.
setOfDecoder :: (Typeable a, Ord a) => Decoder a -> Decoder (Set a)registry-aeson Data.Registry.Aeson.Decoder No documentation available.
setOfEncoder :: Encoder a -> Encoder (Set a)registry-aeson Data.Registry.Aeson.Encoder No documentation available.
setDuplication :: MonadQuery m => Duplication -> m ()relational-query Database.Relational.Monad.Class Specify duplication.
setVersion :: SafeJSON a => Value -> Valuesafe-json Data.SafeJSON CAUTION: Only use this function if you know what you're doing. The version will be set top-level, without inspection of the Value! (cf. removeVersion) In some rare cases, you might want to interpret a versionless Value as a certain type/version. setVersion allows you to (unsafely) insert a version field. If possible, it is advised to use a FromJSON instance instead. (One that doesn't also use safeFromJSON in its methods!) This might be needed when data sent to an API endpoint doesn't need to implement SafeJSON standards. E.g. in the case of endpoints for third parties or customers.
USAGE: {-# LANGUAGE TypeApplications #-} data Test = Test String instance SafeJSON Test where ... >>> val = String "test" :: Value String "test" >>> encode val ""test"" >>> encode $ setVersion @Test val "{"~v":0,"~d":"test"}" >>> parseMaybe safeFromJSON $ setVersion @Test val Just (Test "test")
setVersion' :: SafeJSON a => Version a -> Value -> Valuesafe-json Data.SafeJSON Same as setVersion, but requires a Version parameter.
>>> encode $ setVersion' (version :: Version Test) val "{\"~v\":0,\"~d\":\"test\"}"
setBitTo :: SFiniteBits a => SBV a -> Int -> SBool -> SBV asbv Data.SBV A combo of setBit and clearBit, when the bit to be set is symbolic.
setInfo :: SolverContext m => String -> [String] -> m ()sbv Data.SBV Set info. Example: setInfo ":status" ["unsat"].