Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
safeHeadG :: Foldable t => t a -> Maybe amonoid-insertleft Data.InsertLeft If a structure is empty, just returns Nothing.
foldFirst :: Foldable t => t a -> Maybe ahw-prim HaskellWorks.Data.Foldable No documentation available.
foldLast :: Foldable t => t a -> Maybe ahw-prim HaskellWorks.Data.Foldable No documentation available.
head :: Foldable f => f a -> Maybe aprotolude Protolude.List No documentation available.
fromFoldable :: (Foldable f, Vector v a) => f a -> v avector-extras VectorExtras.Generic No documentation available.
average :: forall a f . (Foldable f, Fractional a) => f a -> Maybe arelude Relude.Extra.Foldable Given a Foldable of Fractional elements, computes the average if possible and returns Maybe element.
>>> average [42] Just 42.0 >>> average @Double [1, 2, 3, 4] Just 2.5 >>> average @Float [1.5, 2.5, 3 ,4] Just 2.75 >>> average [] Nothing
isConst :: (Mapping k m, Ord v) => m v -> Maybe vmappings Data.Mapping No documentation available.
unsafePrimCast :: (PrimMonad m1, PrimMonad m2) => m1 a -> m2 abasement Basement.Monad Convert a prim monad to another prim monad. The net effect is that it coerce the state repr to another, so the runtime representation should be the same, otherwise hilary ensues.
-
fused-effects Control.Effect.Lift Given a Lift n constraint in a signature carried by m, sendM promotes arbitrary actions of type n a to m a. It is spiritually similar to lift from the MonadTrans typeclass.
convert :: (Vector v a, Vector w a) => v a -> w ario RIO.Vector No documentation available.