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.
toMaybe :: Bool -> a -> Maybe ahxt Text.XML.HXT.DOM.Util No documentation available.
productMaybeWith :: (a -> b -> Maybe c) -> [[a]] -> [[b]] -> [[c]]leancheck Test.LeanCheck Take the product of lists of tiers by a function returning a Maybe value discarding Nothing values.
productMaybeWith :: (a -> b -> Maybe c) -> [[a]] -> [[b]] -> [[c]]leancheck Test.LeanCheck.Error Take the product of lists of tiers by a function returning a Maybe value discarding Nothing values.
funToListMaybe :: Listable a => (a -> b) -> [Maybe b]leancheck Test.LeanCheck.Function.List Converts a function to a list of Just result values or Nothing on error.
> take 6 $ funToListMaybe $ head :: [Maybe Int] [Nothing,Just 0,Just 0,Just 1,Just 0,Just 0]
This uses errorToNothing and consequently unsafePerformIO.catMaybesT :: [[Maybe a]] -> [[a]]leancheck Test.LeanCheck.Tiers Concatenate tiers of maybes
mapMaybeT :: (a -> Maybe b) -> [[a]] -> [[b]]leancheck Test.LeanCheck.Tiers Like mapMaybe but for tiers.
productMaybeWith :: (a -> b -> Maybe c) -> [[a]] -> [[b]] -> [[c]]leancheck Test.LeanCheck.Tiers Take the product of lists of tiers by a function returning a Maybe value discarding Nothing values.
-
quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList No documentation available.
-
quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList Property for the mapMaybe function, which keeps elements for which the predicate holds true.
fromMaybeS :: Selective f => f a -> f (Maybe a) -> f aselective Control.Selective A lifted version of fromMaybe.