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.
setReadBufferSize :: HasReadBufferSize a => Int -> a -> astreaming-commons Data.Streaming.Network Set buffer size used when reading from socket. Since 0.1.13
setVal :: Accessor r a -> a -> r -> rdata-accessor Data.Accessor Set a value of a record field that is specified by an Accessor
setOf :: forall k (is :: IxList) s . Is k A_Fold => Optic' k is s Int -> s -> IntSetoptics-core Data.IntSet.Optics Construct an IntSet from a fold.
>>> setOf folded [1,2,3,4] fromList [1,2,3,4]
>>> setOf (folded % _2) [("hello",1),("world",2),("!!!",3)] fromList [1,2,3]setmapped :: Setter' IntSet Intoptics-core Data.IntSet.Optics This Setter can be used to change the type of a IntSet by mapping the elements to new values. Sadly, you can't create a valid Traversal for an IntSet, but you can manipulate it by reading using folded and reindexing it via setmapped.
>>> over setmapped (+1) (IntSet.fromList [1,2,3,4]) fromList [2,3,4,5]
setOf :: forall k a (is :: IxList) s . (Is k A_Fold, Ord a) => Optic' k is s a -> s -> Set aoptics-core Data.Set.Optics Construct a set from a fold.
>>> setOf folded ["hello","world"] fromList ["hello","world"]
>>> setOf (folded % _2) [("hello",1),("world",2),("!!!",3)] fromList [1,2,3]setmapped :: Ord b => Setter (Set a) (Set b) a boptics-core Data.Set.Optics This Setter can be used to change the type of a Set by mapping the elements to new values. Sadly, you can't create a valid Traversal for a Set, but you can manipulate it by reading using folded and reindexing it via setmapped.
>>> over setmapped (+1) (Set.fromList [1,2,3,4]) fromList [2,3,4,5]
setFromList :: IsSet set => [Element set] -> setmono-traversable Data.Containers Convert a list to a set.
setToList :: IsSet set => set -> [Element set]mono-traversable Data.Containers Convert a set to a list.
setNumStripes :: Maybe Int -> PoolConfig a -> PoolConfig aresource-pool Data.Pool 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.
setNumStripes :: Maybe Int -> PoolConfig a -> PoolConfig aresource-pool Data.Pool.Internal 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.