Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
pipes Pipes.Lift Run MaybeT in the base monad
mapMaybe :: forall (m :: Type -> Type) a b r . Functor m => (a -> Maybe b) -> Pipe a b m rpipes Pipes.Prelude (mapMaybe f) yields Just results of f. Basic laws:
mapMaybe (f >=> g) = mapMaybe f >-> mapMaybe g mapMaybe (pure @Maybe . f) = mapMaybe (Just . f) = map f mapMaybe (const Nothing) = drain
As a result of the second law,mapMaybe return = mapMaybe Just = cat
-
haskell-gi-base Data.GI.Base.Attributes No documentation available.
eqMaybe :: EqMaybe a b => a -> b -> Boolhaskell-gi-base Data.GI.Base.Attributes No documentation available.
gvariantFromMaybe :: IsGVariant a => Maybe a -> IO GVarianthaskell-gi-base Data.GI.Base.GVariant Convert a Maybe value into a corresponding GVariant of maybe type.
gvariantToMaybe :: IsGVariant a => GVariant -> IO (Maybe (Maybe a))haskell-gi-base Data.GI.Base.GVariant Try to decode a maybe GVariant into the corresponding Maybe type. If the conversion is successful this returns Just x, where x itself is of Maybe type. So, in particular, Just Nothing indicates a successful call, and means that the GVariant of maybe type was empty.
-
haskell-gi-base Data.GI.Base.ShortPrelude No documentation available.
eqMaybe :: EqMaybe a b => a -> b -> Boolhaskell-gi-base Data.GI.Base.ShortPrelude No documentation available.
mapMaybe :: (a -> Maybe b) -> CharMap a -> CharMap bregex-tdfa Data.IntMap.CharMap2 No documentation available.
mapMaybeWithKey :: (Key -> a -> Maybe b) -> CharMap a -> CharMap bregex-tdfa Data.IntMap.CharMap2 No documentation available.