Hoogle Search

Within Stackage Nightly 2025-09-28 (ghc-9.12.2)

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

  1. setOnClosed :: m () -> Framer m a -> Framer m a

    attoparsec-framer Data.Attoparsec.Framer

    Update the end-of-input handler of a Framer.

  2. setOnFrame :: FrameHandler m frame -> Framer m frame -> Framer m frame

    attoparsec-framer Data.Attoparsec.Framer

    Update the FrameHandler of a Framer.

  3. setters :: Logistic t => t ((a -> a) -> t a -> t a)

    data-functor-logistic Data.Functor.Logistic

    No documentation available.

  4. setDyn :: Typeable a => DynamicState -> a -> DynamicState

    dynamic-state Data.DynamicState

    No documentation available.

  5. setNumStripes :: Maybe Int -> PoolConfig a -> PoolConfig a

    faktory Data.Pool.Compat

    Set the number of stripes (sub-pools) in the pool. If not explicitly set, the default number of stripes is 1, which should be good for typical use (when in doubt, profile your application first). If set to Nothing, the pool will create the number of stripes equal to the number of capabilities. Note: usage of multiple stripes reduces contention, but can also result in suboptimal use of resources since stripes are separated from each other.

  6. setPoolLabel :: Text -> PoolConfig a -> PoolConfig a

    faktory Data.Pool.Compat

    Assign a label to the pool. The label will appear in a label of the collector thread as well as Resource.

  7. setFocusFL :: Int -> FocusList a -> Maybe (FocusList a)

    focuslist Data.FocusList

    Set the Focus for a FocusList. This is just like updateFocusFL, but doesn't return the newly focused item.

    setFocusFL i fl == fmap snd (updateFocusFL i fl)
    
    complexity: O(1)

  8. setFocusItemFL :: a -> FocusList a -> FocusList a

    focuslist Data.FocusList

    Set the item the FocusList is focusing on.

    >>> let Just fl = fromListFL (Focus 1) [10, 20, 30]
    
    >>> setFocusItemFL 0 fl
    FocusList (Focus 1) [10,0,30]
    
    >>> setFocusItemFL "hello" emptyFL
    FocusList NoFocus []
    
    Note: this function forces the updated item. The following throws an exception from undefined even though we updated the focused item at index 1, but lookup the item at index 0.
    >>> let Just fl = fromListFL (Focus 1) [10, 20, 30]
    
    >>> let newFl = setFocusItemFL undefined fl
    
    >>> lookupFL 0 newFl
    *** Exception: ...
    ...
    
    This is a specialization of updateFocusItemFL:
    updateFocusItemFL (const a) fl == setFocusItemFL a fl
    
    complexity: O(log(min(i, n - i))) where i is the Focus, and n is the length of the FocusList.

  9. setField :: forall (f :: Symbol) s a . HasField' f s a => a -> s -> s

    generic-optics Data.Generics.Product.Fields

    >>> setField @"age" 60 human
    Human {name = "Tunyasz", age = 60, address = "London", other = False}
    

  10. setPosition :: forall (i :: Nat) s a . HasPosition' i s a => a -> s -> s

    generic-optics Data.Generics.Product.Positions

    >>> setPosition @2 60 human
    Human {name = "Tunyasz", age = 60, address = "London"}
    

Page 59 of many | Previous | Next