Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
mono-traversable Data.Sequences Takes all of the Just values from a sequence of Maybe ts and concatenates them into an unboxed sequence of ts. Since 0.6.2
leftToMaybe :: Either a b -> Maybe aeither Data.Either.Combinators Maybe get the Left side of an Either.
leftToMaybe ≡ either Just (const Nothing)
Using Control.Lens:leftToMaybe ≡ preview _Left leftToMaybe x ≡ x^?_Left
>>> leftToMaybe (Left 12) Just 12
>>> leftToMaybe (Right 12) Nothing
rightToMaybe :: Either a b -> Maybe beither Data.Either.Combinators Maybe get the Right side of an Either.
rightToMaybe ≡ either (const Nothing) Just
Using Control.Lens:rightToMaybe ≡ preview _Right rightToMaybe x ≡ x^?_Right
>>> rightToMaybe (Left 12) Nothing
>>> rightToMaybe (Right 12) Just 12
fromMaybe :: e -> Maybe a -> Exceptional e aexplicit-exception Control.Monad.Exception.Synchronous No documentation available.
fromMaybeT :: forall (m :: Type -> Type) e a . Monad m => e -> MaybeT m a -> ExceptionalT e m aexplicit-exception Control.Monad.Exception.Synchronous No documentation available.
toMaybe :: Exceptional e a -> Maybe aexplicit-exception Control.Monad.Exception.Synchronous No documentation available.
toMaybeT :: forall (m :: Type -> Type) e a . Monad m => ExceptionalT e m a -> MaybeT m aexplicit-exception Control.Monad.Exception.Synchronous No documentation available.
contramapMaybeGLogFunc :: (a -> Maybe b) -> GLogFunc b -> GLogFunc ario RIO A vesion of contramapMaybeGLogFunc which supports filering.
indexMaybe :: ByteString -> Int -> Maybe Word8rio RIO.ByteString O(1) ByteString index, starting from 0, that returns Just if:
0 <= n < length bs
mapMaybe :: (v1 -> Maybe v2) -> HashMap k v1 -> HashMap k v2rio RIO.HashMap Transform this map by applying a function to every value and retaining only some of them.