Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setSerialConsistency :: SerialConsistency -> BatchM ()cql-io Database.CQL.IO Set Batch serial consistency.
setType :: BatchType -> BatchM ()cql-io Database.CQL.IO Set the type of this batch.
setup :: Policy -> [Host] -> [Host] -> IO ()cql-io Database.CQL.IO Initialise the policy with two sets of hosts. The first parameter are hosts known to be available, the second are other nodes. Note that a policy may be re-initialised at any point through this function.
setters :: Logistic t => t ((a -> a) -> t a -> t a)data-functor-logistic Data.Functor.Logistic No documentation available.
setDyn :: Typeable a => DynamicState -> a -> DynamicStatedynamic-state Data.DynamicState No documentation available.
setNumStripes :: Maybe Int -> PoolConfig a -> PoolConfig afaktory Data.Pool.Compat Set the number of stripes in the pool. If set to Nothing (the default value), the pool will create the amount of stripes equal to the number of capabilities. This ensures that threads never compete over access to the same stripe and results in a very good performance in a multi-threaded environment.
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)setFocusItemFL :: a -> FocusList a -> FocusList afocuslist 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.setField :: forall (f :: Symbol) s a . HasField' f s a => a -> s -> sgeneric-optics Data.Generics.Product.Fields >>> setField @"age" 60 human Human {name = "Tunyasz", age = 60, address = "London", other = False}setPosition :: forall (i :: Nat) s a . HasPosition' i s a => a -> s -> sgeneric-optics Data.Generics.Product.Positions >>> setPosition @2 60 human Human {name = "Tunyasz", age = 60, address = "London"}