Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
set :: forall o m . MonadIO m => o -> [AttrOp o 'AttrSet] -> m ()haskell-gi-base Data.GI.Base.Attributes Set a number of properties for some object.
set :: Ord a => Fold a (Set a)foldl Control.Foldl Fold values into a set
set :: forall k (is :: IxList) s t a b . Is k A_Setter => Optic k is s t a b -> b -> s -> toptics-core Optics.Setter Apply a setter.
set o v ≡ over o (const v)
>>> set _1 'x' ('y', 'z') ('x','z')
-
data-accessor Data.Accessor.Basic Set the value of a field.
set :: Ord a => a -> T (Set a) Booldata-accessor Data.Accessor.Container Treat a Set like a boolean array.
set :: forall (m :: Type -> Type) r a . Monad m => T r a -> a -> StateT r m ()data-accessor Data.Accessor.MonadState No documentation available.
set :: ASetter s t a b -> b -> s -> trio RIO set is a synonym for (.~). Setting the 1st component of a pair:
set _1 :: x -> (a, b) -> (x, b) set _1 = \x t -> (x, snd t)
Using it to rewrite (<$):set mapped :: Functor f => a -> f b -> f a set mapped = (<$)
set :: ASetter s t a b -> b -> s -> tdiagrams-lib Diagrams.Prelude Replace the target of a Lens or all of the targets of a Setter or Traversal with a constant value.
(<$) ≡ set mapped
>>> set _2 "hello" (1,()) (1,"hello")
>>> set mapped () [1,2,3,4] [(),(),(),()]
Note: Attempting to set a Fold or Getter will fail at compile time with an relatively nice error message.set :: Setter s t a b -> b -> s -> t set :: Iso s t a b -> b -> s -> t set :: Lens s t a b -> b -> s -> t set :: Traversal s t a b -> b -> s -> t
set :: ASetter s t a b -> b -> s -> tCabal-syntax Distribution.Compat.Lens No documentation available.
set :: RedisCtx m f => ByteString -> ByteString -> m (f Status)hedis Database.Redis No documentation available.