Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
catMaybes :: List1 (Maybe a) -> [a]Agda Agda.Utils.List1 Like catMaybes.
mapMaybe :: (a -> Maybe b) -> List1 a -> [b]Agda Agda.Utils.List1 Like mapMaybe.
fromList1Maybe :: List1 a -> Maybe (List2 a)Agda Agda.Utils.List2 Safe. O(1).
fromListMaybe :: [a] -> Maybe (List2 a)Agda Agda.Utils.List2 Safe. O(1).
boolToMaybe :: Bool -> a -> Maybe aAgda Agda.Utils.Maybe Retain object when tag is True.
caseMaybe :: Maybe a -> b -> (a -> b) -> bAgda Agda.Utils.Maybe Version of maybe with different argument ordering. Often, we want to case on a Maybe, do something interesting in the Just case, but only a default action in the Nothing case. Then, the argument ordering of caseMaybe is preferable.
caseMaybe m d f = flip (maybe d) m f
caseMaybeM :: Monad m => m (Maybe a) -> m b -> (a -> m b) -> m bAgda Agda.Utils.Maybe Monadic version of caseMaybe. That is, maybeM with a different argument ordering.
filterMaybe :: (a -> Bool) -> a -> Maybe aAgda Agda.Utils.Maybe Filtering a singleton list.
filterMaybe p a = listToMaybe (filter p [a])
forMaybe :: [a] -> (a -> Maybe b) -> [b]Agda Agda.Utils.Maybe Version of mapMaybe with different argument ordering.
fromMaybeM :: Monad m => m a -> m (Maybe a) -> m aAgda Agda.Utils.Maybe Monadic version of fromMaybe.