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.

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

  2. set :: Ord a => Fold a (Set a)

    foldl Control.Foldl

    Fold values into a set

  3. set :: forall k (is :: IxList) s t a b . Is k A_Setter => Optic k is s t a b -> b -> s -> t

    optics-core Optics.Setter

    Apply a setter.

    set o v ≡ over o (const v)
    
    >>> set _1 'x' ('y', 'z')
    ('x','z')
    

  4. set :: T r a -> a -> r -> r

    data-accessor Data.Accessor.Basic

    Set the value of a field.

  5. set :: Ord a => a -> T (Set a) Bool

    data-accessor Data.Accessor.Container

    Treat a Set like a boolean array.

  6. set :: forall (m :: Type -> Type) r a . Monad m => T r a -> a -> StateT r m ()

    data-accessor Data.Accessor.MonadState

    No documentation available.

  7. set :: ASetter s t a b -> b -> s -> t

    rio 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 = (<$)
    

  8. set :: ASetter s t a b -> b -> s -> t

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

  9. set :: ASetter s t a b -> b -> s -> t

    Cabal-syntax Distribution.Compat.Lens

    No documentation available.

  10. set :: RedisCtx m f => ByteString -> ByteString -> m (f Status)

    hedis Database.Redis

    No documentation available.

Page 12 of many | Previous | Next