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.

  1. toMaybe :: Bool -> a -> Maybe a

    hxt Text.XML.HXT.DOM.Util

    No documentation available.

  2. 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.

  3. 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.

  4. 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.

  5. catMaybesT :: [[Maybe a]] -> [[a]]

    leancheck Test.LeanCheck.Tiers

    Concatenate tiers of maybes

  6. mapMaybeT :: (a -> Maybe b) -> [[a]] -> [[b]]

    leancheck Test.LeanCheck.Tiers

    Like mapMaybe but for tiers.

  7. 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.

  8. mapMaybeMProp :: (IsList c, IsList d, Eq d, Show d, Show b, Item c ~ a, Item d ~ b, Arbitrary c, Arbitrary b, Show c, Show a, CoArbitrary a, Function a) => Proxy a -> Proxy b -> (forall s . () => (a -> ST s (Maybe b)) -> c -> ST s d) -> Property

    quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList

    No documentation available.

  9. mapMaybeProp :: (IsList c, Item c ~ a, Item d ~ b, Eq d, IsList d, Arbitrary b, Show d, Show b, Arbitrary c, Show c, Show a, Eq c, CoArbitrary a, Function a) => Proxy a -> Proxy b -> ((a -> Maybe b) -> c -> d) -> Property

    quickcheck-classes-base Test.QuickCheck.Classes.Base.IsList

    Property for the mapMaybe function, which keeps elements for which the predicate holds true.

  10. fromMaybeS :: Selective f => f a -> f (Maybe a) -> f a

    selective Control.Selective

    A lifted version of fromMaybe.

Page 170 of many | Previous | Next