Hoogle Search
Within LTS Haskell 24.5 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
adjust' :: (a -> a) -> Int -> Seq a -> Seq acontainers Data.Sequence Update the element at the specified position. If the position is out of range, the original sequence is returned. The new value is forced before it is installed in the sequence.
adjust' f i xs = case xs !? i of Nothing -> xs Just x -> let !x' = f x in update i x' xs
adjust :: (a -> a) -> Int -> Seq a -> Seq acontainers Data.Sequence.Internal Update the element at the specified position. If the position is out of range, the original sequence is returned. adjust can lead to poor performance and even memory leaks, because it does not force the new value before installing it in the sequence. adjust' should usually be preferred.
adjust' :: (a -> a) -> Int -> Seq a -> Seq acontainers Data.Sequence.Internal Update the element at the specified position. If the position is out of range, the original sequence is returned. The new value is forced before it is installed in the sequence.
adjust' f i xs = case xs !? i of Nothing -> xs Just x -> let !x' = f x in update i x' xs
adjustOption :: IsOption v => (v -> v) -> TestTree -> TestTreetasty Test.Tasty Locally adjust the option value for the given test subtree.
adjust :: (Eq k, Hashable k) => (v -> v) -> k -> HashMap k v -> HashMap k vunordered-containers Data.HashMap.Internal Adjust the value tied to a given key in this map only if it is present. Otherwise, leave the map alone.
adjust# :: (Eq k, Hashable k) => (v -> (# v #)) -> k -> HashMap k v -> HashMap k vunordered-containers Data.HashMap.Internal Much like adjust, but not inherently leaky.
adjust :: (Eq k, Hashable k) => (v -> v) -> k -> HashMap k v -> HashMap k vunordered-containers Data.HashMap.Internal.Strict Adjust the value tied to a given key in this map only if it is present. Otherwise, leave the map alone.
adjust :: (Eq k, Hashable k) => (v -> v) -> k -> HashMap k v -> HashMap k vunordered-containers Data.HashMap.Lazy Adjust the value tied to a given key in this map only if it is present. Otherwise, leave the map alone.
adjust :: (Eq k, Hashable k) => (v -> v) -> k -> HashMap k v -> HashMap k vunordered-containers Data.HashMap.Strict Adjust the value tied to a given key in this map only if it is present. Otherwise, leave the map alone.
catchJust :: (HasCallStack, MonadCatch m, Exception e) => (e -> Maybe b) -> m a -> (b -> m a) -> m aexceptions Control.Monad.Catch A more generalized way of determining which exceptions to catch at run time.