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.
runMaybeT :: MaybeT (m :: Type -> Type) a -> m (Maybe a)ghc GHC.Data.Maybe No documentation available.
tryMaybeT :: IO a -> MaybeT IO aghc GHC.Data.Maybe Try performing an IO action, failing on error.
fromMaybe :: a -> Maybe a -> aghc GHC.Data.Strict No documentation available.
filterMaybe :: (a -> Bool) -> Maybe a -> Maybe aghc GHC.Data.TrieMap No documentation available.
foldMaybe :: (a -> b -> b) -> Maybe a -> b -> bghc GHC.Data.TrieMap No documentation available.
apMaybeUB :: MaybeUB (a -> b) -> MaybeUB a -> MaybeUB bghc GHC.Data.Unboxed No documentation available.
fmapMaybeUB :: (a -> b) -> MaybeUB a -> MaybeUB bghc GHC.Data.Unboxed No documentation available.
fromMaybeUB :: a -> MaybeUB a -> aghc GHC.Data.Unboxed No documentation available.
mapMaybe :: (a -> Maybe b) -> Word64Map a -> Word64Map bghc GHC.Data.Word64Map.Internal Map values and collect the Just results.
let f x = if x == "a" then Just "new a" else Nothing mapMaybe f (fromList [(5,"a"), (3,"b")]) == singleton 5 "new a"
-
ghc GHC.Data.Word64Map.Internal Map over the entries whose keys are missing from the other map, optionally removing some. This is the most powerful SimpleWhenMissing tactic, but others are usually more efficient.
mapMaybeMissing :: (Key -> x -> Maybe y) -> SimpleWhenMissing x y
mapMaybeMissing f = traverseMaybeMissing (\k x -> pure (f k x))
but mapMaybeMissing uses fewer unnecessary Applicative operations.